From: Diana Clarke Date: Sun, 18 Mar 2012 03:06:41 +0000 (-0400) Subject: typos in lib/sqlalchemy/orm X-Git-Tag: rel_0_7_7~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3962c985b9bbfb8ceaea001e27a63e03bdbf5a89;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git typos in lib/sqlalchemy/orm --- diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py index 9fd969e3bf..ca4099d68d 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 d31b970e30..3b4f18b310 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: