Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bug 1268253 - Horizon: Typo error fix #32

Closed
wants to merge 1 commit into from

2 participants

@keshy keshy Fix spelling errors in comments for api modules in openstack_dashboar…
…d. Closes-Bug: #1268253

Change-Id: I8a8de8bb8fa1a239e9381747729966614bf1389d
5dc509f
@openstack-gerrit
Collaborator

Thank you for contributing to openstack/horizon!

openstack/horizon uses Gerrit for code review.

Please visit http://wiki.openstack.org/GerritWorkflow and follow the
instructions there to upload your change to Gerrit.

@onceuponatimeforever onceuponatimeforever referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 12, 2014
  1. @keshy

    Fix spelling errors in comments for api modules in openstack_dashboar…

    keshy authored
    …d. Closes-Bug: #1268253
    
    Change-Id: I8a8de8bb8fa1a239e9381747729966614bf1389d
This page is out of date. Refresh to see the latest.
View
4 openstack_dashboard/api/base.py
@@ -150,7 +150,7 @@ class QuotaSet(Sequence):
into Quota objects for easier handling/iteration.
`QuotaSet` objects support a mix of `list` and `dict` methods; you can use
- the bracket notiation (`qs["my_quota"] = 0`) to add new quota values, and
+ the bracket notation (`qs["my_quota"] = 0`) to add new quota values, and
use the `get` method to retrieve a specific quota, but otherwise it
behaves much like a list or tuple, particularly in supporting iteration.
"""
@@ -177,7 +177,7 @@ def __getitem__(self, index):
def __add__(self, other):
"""Merge another QuotaSet into this one. Existing quotas are
- not overriden.
+ not overridden.
"""
if not isinstance(other, QuotaSet):
msg = "Can only add QuotaSet to QuotaSet, " \
View
10 openstack_dashboard/api/ceilometer.py
@@ -49,7 +49,7 @@ def is_iterable(var):
def make_query(user_id=None, tenant_id=None, resource_id=None,
user_ids=None, tenant_ids=None, resource_ids=None):
- """Returns query built form given parameters.
+ """Returns query built from given parameters.
This query can be then used for querying resources, meters and
statistics.
@@ -175,7 +175,7 @@ def query(self):
class ResourceAggregate(Resource):
"""Represents aggregate of more resources together.
- Aggregate of resources can be obtain by specifing
+ Aggregate of resources can be obtain by specifying
multiple ids in one parameter or by not specifying
one parameter.
Or it can be specified by query directly.
@@ -385,7 +385,7 @@ def __init__(self, request):
self._tenants = {}
def get_user(self, user_id):
- """Returns user fetched form API
+ """Returns user fetched from API
Caching the result, so it doesn't contact API twice with the
same query
@@ -412,7 +412,7 @@ def preload_all_users(self):
self._users[u.id] = u
def get_tenant(self, tenant_id):
- """Returns tenant fetched form API.
+ """Returns tenant fetched from API.
Caching the result, so it doesn't contact API twice with the
same query
@@ -426,7 +426,7 @@ def get_tenant(self, tenant_id):
return tenant
def preload_all_tenants(self):
- """Preloads all teannts into dictionary.
+ """Preloads all tenants into dictionary.
It's more effective to preload all tenants, rather the fetching many
tenants by separate API get calls.
Something went wrong with that request. Please try again.