Corrected spelling errors throughout the project
While browsing through the Horizon repository, I came across a few spelling errors that need correction. Change-Id: I593e9f04ea5d9f3985a14fb994b745243468387a Closes-Bug: #1511532
This commit is contained in:
parent
c7b4ca3600
commit
642aa9a351
@ -988,7 +988,7 @@ class DataTableTests(test.TestCase):
|
|||||||
['FakeObject: object_2'],
|
['FakeObject: object_2'],
|
||||||
transform=six.text_type)
|
transform=six.text_type)
|
||||||
|
|
||||||
# Ensure fitering respects the request method, e.g. no filter here
|
# Ensure filtering respects the request method, e.g. no filter here
|
||||||
req = self.factory.get('/my_url/', {action_string: '2'})
|
req = self.factory.get('/my_url/', {action_string: '2'})
|
||||||
self.table = MyTable(req, TEST_DATA)
|
self.table = MyTable(req, TEST_DATA)
|
||||||
handled = self.table.maybe_handle()
|
handled = self.table.maybe_handle()
|
||||||
|
@ -350,7 +350,7 @@ class SecurityGroupManager(network_base.SecurityGroupManager):
|
|||||||
# Exception, since the former is recognized as a
|
# Exception, since the former is recognized as a
|
||||||
# "recoverable" exception by horizon, and therefore the
|
# "recoverable" exception by horizon, and therefore the
|
||||||
# error message is passed along to the end user, while
|
# error message is passed along to the end user, while
|
||||||
# Exception is swallowed alive by horizon and a gneric
|
# Exception is swallowed alive by horizon and a generic
|
||||||
# error message is given to the end user
|
# error message is given to the end user
|
||||||
raise nova_exceptions.ClientException(
|
raise nova_exceptions.ClientException(
|
||||||
err.code,
|
err.code,
|
||||||
|
@ -22,6 +22,6 @@ from openstack_dashboard.dashboards.project.routers.extensions.extraroutes\
|
|||||||
class AdminRouterRoutesTable(routes_table.ExtraRoutesTable):
|
class AdminRouterRoutesTable(routes_table.ExtraRoutesTable):
|
||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
# Redifine Meta class to disable action (admin)
|
# Redefine Meta class to disable action (admin)
|
||||||
name = "extra_routes"
|
name = "extra_routes"
|
||||||
verbose_name = _("Static Routes")
|
verbose_name = _("Static Routes")
|
||||||
|
@ -107,7 +107,7 @@ class CreateVolumeTypeEncryption(forms.SelfHandlingForm):
|
|||||||
if data['cipher'] is u'':
|
if data['cipher'] is u'':
|
||||||
data['cipher'] = None
|
data['cipher'] = None
|
||||||
|
|
||||||
# Create encyrption for the volume type
|
# Create encryption for the volume type
|
||||||
volume_type = cinder.\
|
volume_type = cinder.\
|
||||||
volume_encryption_type_create(request,
|
volume_encryption_type_create(request,
|
||||||
data['volume_type_id'],
|
data['volume_type_id'],
|
||||||
|
@ -37,7 +37,7 @@ class AddPoolAction(workflows.Action):
|
|||||||
description = forms.CharField(
|
description = forms.CharField(
|
||||||
initial="", required=False,
|
initial="", required=False,
|
||||||
max_length=80, label=_("Description"))
|
max_length=80, label=_("Description"))
|
||||||
# provider is optional because some LBaaS implemetation does
|
# provider is optional because some LBaaS implementation does
|
||||||
# not support service-type extension.
|
# not support service-type extension.
|
||||||
provider = forms.ChoiceField(label=_("Provider"), required=False)
|
provider = forms.ChoiceField(label=_("Provider"), required=False)
|
||||||
subnet_id = forms.ChoiceField(label=_("Subnet"))
|
subnet_id = forms.ChoiceField(label=_("Subnet"))
|
||||||
|
@ -90,7 +90,7 @@ class NetworkTopologyTests(test.TestCase):
|
|||||||
for server in self.servers.list()]
|
for server in self.servers.list()]
|
||||||
self.assertEqual(expect_server_urls, data['servers'])
|
self.assertEqual(expect_server_urls, data['servers'])
|
||||||
|
|
||||||
# rotuers
|
# routers
|
||||||
# result_router_urls = [(router['id'], router['url'])
|
# result_router_urls = [(router['id'], router['url'])
|
||||||
# for router in data['routers']]
|
# for router in data['routers']]
|
||||||
if router_enable:
|
if router_enable:
|
||||||
|
@ -280,7 +280,7 @@ class CreateSubnetInfoAction(workflows.Action):
|
|||||||
address_source = cleaned_data.get('address_source')
|
address_source = cleaned_data.get('address_source')
|
||||||
|
|
||||||
# When creating network from a pool it is allowed to supply empty
|
# When creating network from a pool it is allowed to supply empty
|
||||||
# subnetpool_id signalling that Neutron should choose the default
|
# subnetpool_id signaling that Neutron should choose the default
|
||||||
# pool configured by the operator. This is also part of the IPv6
|
# pool configured by the operator. This is also part of the IPv6
|
||||||
# Prefix Delegation Workflow.
|
# Prefix Delegation Workflow.
|
||||||
if not cidr and address_source != 'subnetpool':
|
if not cidr and address_source != 'subnetpool':
|
||||||
|
@ -181,7 +181,7 @@ SESSION_COOKIE_HTTPONLY = True
|
|||||||
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
|
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
|
||||||
SESSION_COOKIE_SECURE = False
|
SESSION_COOKIE_SECURE = False
|
||||||
|
|
||||||
# SESSION_TIMEOUT is a method to supercede the token timeout with a shorter
|
# SESSION_TIMEOUT is a method to supersede the token timeout with a shorter
|
||||||
# horizon session timeout (in seconds). So if your token expires in 60
|
# horizon session timeout (in seconds). So if your token expires in 60
|
||||||
# minutes, a value of 1800 will log users out after 30 minutes
|
# minutes, a value of 1800 will log users out after 30 minutes
|
||||||
SESSION_TIMEOUT = 3600
|
SESSION_TIMEOUT = 3600
|
||||||
|
@ -346,7 +346,7 @@ class FwaasApiTests(test.APITestCase):
|
|||||||
self.assertEqual(exp_firewall.policy.name, ret_val.policy.name)
|
self.assertEqual(exp_firewall.policy.name, ret_val.policy.name)
|
||||||
|
|
||||||
# TODO(absubram) : Add API tests for firewall_create with routers,
|
# TODO(absubram) : Add API tests for firewall_create with routers,
|
||||||
# add router to firewal and remove router from fw.
|
# add router to firewall and remove router from fw.
|
||||||
|
|
||||||
@test.create_stubs({neutronclient: ('list_firewalls',
|
@test.create_stubs({neutronclient: ('list_firewalls',
|
||||||
'list_firewall_policies')})
|
'list_firewall_policies')})
|
||||||
|
@ -290,7 +290,7 @@ def _get_tenant_compute_usages(request, usages, disabled_quotas, tenant_id):
|
|||||||
usages.tally('cores', getattr(flavor, 'vcpus', None))
|
usages.tally('cores', getattr(flavor, 'vcpus', None))
|
||||||
usages.tally('ram', getattr(flavor, 'ram', None))
|
usages.tally('ram', getattr(flavor, 'ram', None))
|
||||||
|
|
||||||
# Initialise the tally if no instances have been launched yet
|
# Initialize the tally if no instances have been launched yet
|
||||||
if len(instances) == 0:
|
if len(instances) == 0:
|
||||||
usages.tally('cores', 0)
|
usages.tally('cores', 0)
|
||||||
usages.tally('ram', 0)
|
usages.tally('ram', 0)
|
||||||
|
@ -28,7 +28,7 @@ def translate(segment):
|
|||||||
if segment.startswith('\n'):
|
if segment.startswith('\n'):
|
||||||
prefix = u"\n"
|
prefix = u"\n"
|
||||||
orig_size = len(segment)
|
orig_size = len(segment)
|
||||||
# Add extra expansion space based on recommenation from
|
# Add extra expansion space based on recommendation from
|
||||||
# http://www-01.ibm.com/software/globalization/guidelines/a3.html
|
# http://www-01.ibm.com/software/globalization/guidelines/a3.html
|
||||||
if orig_size < 20:
|
if orig_size < 20:
|
||||||
multiplier = 1
|
multiplier = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user