diff options
| author | Diana Clarke <diana.joan.clarke@gmail.com> | 2012-03-17 23:06:41 -0400 |
|---|---|---|
| committer | Diana Clarke <diana.joan.clarke@gmail.com> | 2012-03-17 23:06:41 -0400 |
| commit | 3962c985b9bbfb8ceaea001e27a63e03bdbf5a89 (patch) | |
| tree | caa9306d98dcbb4c2fc5c3b13290215637be98e2 | |
| parent | b60fdb094057a648850947f688eb15617cfd50d7 (diff) | |
| download | sqlalchemy-3962c985b9bbfb8ceaea001e27a63e03bdbf5a89.tar.gz | |
typos in lib/sqlalchemy/orm
| -rw-r--r-- | lib/sqlalchemy/orm/__init__.py | 10 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py index 9fd969e3b..ca4099d68 100644 --- a/lib/sqlalchemy/orm/__init__.py +++ b/lib/sqlalchemy/orm/__init__.py @@ -441,7 +441,7 @@ def relationship(argument, secondary=None, **kwargs): * True - a synonym for 'select' - * False - a synonyn for 'joined' + * False - a synonym for 'joined' * None - a synonym for 'noload' @@ -719,7 +719,7 @@ def column_property(*cols, **kw): def composite(class_, *cols, **kwargs): """Return a composite column-based property for use with a Mapper. - See the mapping documention section :ref:`mapper_composite` for a full + See the mapping documentation section :ref:`mapper_composite` for a full usage example. :param class\_: @@ -1218,7 +1218,7 @@ def comparable_property(comparator_factory, descriptor=None): Optional when used in a ``properties={}`` declaration. The Python descriptor or property to layer comparison behavior on top of. - The like-named descriptor will be automatically retreived from the + The like-named descriptor will be automatically retrieved from the mapped class if left blank in a ``properties`` declaration. """ @@ -1278,7 +1278,7 @@ def joinedload(*keys, **kw): examples:: - # joined-load the "orders" colleciton on "User" + # joined-load the "orders" collection on "User" query(User).options(joinedload(User.orders)) # joined-load the "keywords" collection on each "Item", @@ -1381,7 +1381,7 @@ def subqueryload(*keys): examples:: - # subquery-load the "orders" colleciton on "User" + # subquery-load the "orders" collection on "User" query(User).options(subqueryload(User.orders)) # subquery-load the "keywords" collection on each "Item", diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index d31b970e3..3b4f18b31 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -413,7 +413,7 @@ class AttributeImpl(object): Only applies to object-based attributes. This is an inlining of existing functionality - which roughly correponds to: + which roughly corresponds to: get_state_history( state, @@ -686,7 +686,7 @@ class ScalarObjectAttributeImpl(ScalarAttributeImpl): old is not PASSIVE_NO_RESULT and \ check_old is not old: if pop: - return + return else: raise ValueError( "Object %s not associated with %s on attribute '%s'" % ( @@ -1126,7 +1126,7 @@ class History(tuple): return cls((), (), ()) else: return cls((), [current], ()) - # dont let ClauseElement expressions here trip things up + # don't let ClauseElement expressions here trip things up elif attribute.is_equal(current, original) is True: return cls((), [current], ()) else: |
