]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected a bunch of spelling typos.
authorDiana Clarke <diana.joan.clarke@gmail.com>
Mon, 14 Mar 2011 19:22:09 +0000 (15:22 -0400)
committerDiana Clarke <diana.joan.clarke@gmail.com>
Mon, 14 Mar 2011 19:22:09 +0000 (15:22 -0400)
15 files changed:
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/exc.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/sync.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/util.py
test/dialect/test_mysql.py
test/engine/test_transaction.py
test/orm/test_expire.py
test/orm/test_unitofwork.py

index 0af77988757b42eb66c720043526e950c1b11974..b0442e5142e6bc2b6fb83d4f0f23cbb462f0b517 100644 (file)
@@ -617,7 +617,7 @@ class ExecutionContext(object):
         raise NotImplementedError()
 
     def handle_dbapi_exception(self, e):
-        """Receive a DBAPI exception which occured upon execute, result 
+        """Receive a DBAPI exception which occurred upon execute, result 
         fetch, etc."""
 
         raise NotImplementedError()
index b50e000a2e6e77b3fb63390c6be7e71df5c7c8f2..31c52113a364e32df2a69696474d23491b5d2c3d 100644 (file)
@@ -39,7 +39,7 @@ class CompileError(SQLAlchemyError):
 class IdentifierError(SQLAlchemyError):
     """Raised when a schema name is beyond the max character limit"""
 
-# Moved to orm.exc; compatability definition installed by orm import until 0.6
+# Moved to orm.exc; compatibility definition installed by orm import until 0.6
 ConcurrentModificationError = None
 
 class DisconnectionError(SQLAlchemyError):
@@ -51,7 +51,7 @@ class DisconnectionError(SQLAlchemyError):
     """
 
 
-# Moved to orm.exc; compatability definition installed by orm import until 0.6
+# Moved to orm.exc; compatibility definition installed by orm import until 0.6
 FlushError = None
 
 class TimeoutError(SQLAlchemyError):
index 7646a91610b18d3d6fc255a938cc74e1f6a5bd52..7126b7f04453a97f2060bb911624376d8926a2b8 100644 (file)
@@ -1300,7 +1300,7 @@ class _ClassInstrumentationAdapter(ClassManager):
 
 class History(tuple):
     """A 3-tuple of added, unchanged and deleted values,
-    representing the changes which have occured on an instrumented
+    representing the changes which have occurred on an instrumented
     attribute.
 
     Each tuple member is an iterable sequence.
index 11f8fc48b007cea8b8f895538ed3bba449c31d7c..26894e37996e330389c67cc2d4593b578c08bba8 100644 (file)
@@ -53,7 +53,7 @@ class DependencyProcessor(object):
         """establish actions and dependencies related to a flush.
 
         These actions will operate on all relevant states in
-        the aggreagte.
+        the aggregate.
 
         """
         uow.register_preprocessor(self, True)
index 9f44fd060039d571f61574e511c31853377d7cad..8211d7396f5262ac235485d6ffab898233400036 100644 (file)
@@ -953,7 +953,7 @@ def _reduce_path(path):
 
     This is used to allow more open ended selection of loader strategies, i.e.
     Mapper -> prop1 -> Subclass -> prop2, where Subclass is a sub-mapper
-    of the mapper referened by Mapper.prop1.
+    of the mapper referenced by Mapper.prop1.
 
     """
     return tuple([i % 2 != 0 and 
index 9f51ea1192b46864d77eaa4d0ed48351f4c3fdba..9bb8f1a6356d1eddf3363c869f1d5a5e221034b8 100644 (file)
@@ -966,7 +966,7 @@ class RelationshipProperty(StrategizedProperty):
                 if inheriting is not self.parent \
                     and inheriting.has_property(self.key):
                     util.warn("Warning: relationship '%s' on mapper "
-                              "'%s' supercedes the same relationship "
+                              "'%s' supersedes the same relationship "
                               "on inherited mapper '%s'; this can "
                               "cause dependency issues during flush"
                               % (self.key, self.parent, inheriting))
@@ -1038,7 +1038,7 @@ class RelationshipProperty(StrategizedProperty):
 
     def _sync_pairs_from_join(self, join_condition, primary):
         """Given a join condition, figure out what columns are foreign
-        and are part of a binary "equated" condition to their referecned
+        and are part of a binary "equated" condition to their referenced
         columns, and convert into a list of tuples of (primary col->foreign col).
 
         Make several attempts to determine if cols are compared using 
@@ -1433,7 +1433,7 @@ class RelationshipProperty(StrategizedProperty):
 
         # adjust the join condition for single table inheritance,
         # in the case that the join is to a subclass
-        # this is analgous to the "_adjust_for_single_table_inheritance()"
+        # this is analogous to the "_adjust_for_single_table_inheritance()"
         # method in Query.
 
         dest_mapper = of_type or self.mapper
index 1da9aad1ef938aa892f0f6035515ebf006c913e4..64ea7455b580a0efba913eb3b7b558a08b9ee0d9 100644 (file)
@@ -276,7 +276,7 @@ class Query(object):
 
     @property
     def _mapper_entities(self):
-        # TODO: this is wrong, its hardcoded to "priamry entity" when
+        # TODO: this is wrong, its hardcoded to "primary entity" when
         # for the case of __all_equivs() it should not be
         # the name of this accessor is wrong too
         for ent in self._entities:
@@ -448,7 +448,7 @@ class Query(object):
         """Return the full SELECT statement represented by this :class:`.Query`, converted 
         to a scalar subquery with a label of the given name.
 
-        Analagous to :meth:`sqlalchemy.sql._SelectBaseMixin.label`.
+        Analogous to :meth:`sqlalchemy.sql._SelectBaseMixin.label`.
 
         New in 0.6.5.
 
@@ -461,7 +461,7 @@ class Query(object):
         """Return the full SELECT statement represented by this :class:`.Query`, converted 
         to a scalar subquery.
 
-        Analagous to :meth:`sqlalchemy.sql._SelectBaseMixin.as_scalar`.
+        Analogous to :meth:`sqlalchemy.sql._SelectBaseMixin.as_scalar`.
 
         New in 0.6.5.
 
@@ -835,12 +835,12 @@ class Query(object):
         self._setup_aliasizers(self._entities[l:])
 
     @util.pending_deprecation("0.7", 
-                ":meth:`.add_column` is superceded by :meth:`.add_columns`", 
+                ":meth:`.add_column` is superseded by :meth:`.add_columns`", 
                 False)
     def add_column(self, column):
         """Add a column expression to the list of result columns to be returned.
 
-        Pending deprecation: :meth:`.add_column` will be superceded by 
+        Pending deprecation: :meth:`.add_column` will be superseded by 
         :meth:`.add_columns`.
 
         """
@@ -1201,7 +1201,7 @@ class Query(object):
     @util.accepts_a_list_as_starargs(list_deprecation='deprecated')
     def outerjoin(self, *props, **kwargs):
         """Create a left outer join against this ``Query`` object's criterion
-        and apply generatively, retunring the newly resulting ``Query``.
+        and apply generatively, returning the newly resulting ``Query``.
 
         Usage is the same as the ``join()`` method.
 
@@ -2733,7 +2733,7 @@ class _ColumnEntity(_QueryEntity):
 
         # look for ORM entities represented within the
         # given expression.  Try to count only entities
-        # for columns whos FROM object is in the actual list
+        # for columns whose FROM object is in the actual list
         # of FROMs for the overall expression - this helps
         # subqueries which were built from ORM constructs from
         # leaking out their entities into the main select construct
index ea62bd42f69c56da33a23b3683f4f2c7117874d5..e48257a528224045a40c777064ad58479868d9ff 100644 (file)
@@ -915,7 +915,7 @@ class Session(object):
     def expire_all(self):
         """Expires all persistent instances within this Session.
 
-        When any attributes on a persitent instance is next accessed, 
+        When any attributes on a persistent instance is next accessed, 
         a query will be issued using the
         :class:`.Session` object's current transactional context in order to
         load all expired attributes for the given instance.   Note that
@@ -1046,7 +1046,7 @@ class Session(object):
                 not mapper.allow_partial_pks or \
                 _none_set.issuperset(instance_key[1]):
                 raise exc.FlushError('Instance %s has a NULL identity '
-                        'key.  Check if this flush is occuring at an '
+                        'key.  Check if this flush is occurring at an '
                         'inappropriate time, such as during a load '
                         'operation.' % mapperutil.state_str(state))
 
index 7ba0b1ad56ca76052c5e640b13adcfd54ad2d666..423245fc70675e68e9d2d514ba5201397624a251 100644 (file)
@@ -23,7 +23,7 @@ def populate(source, source_mapper, dest, dest_mapper,
         except exc.UnmappedColumnError:
             _raise_col_to_prop(True, source_mapper, l, dest_mapper, r)
 
-        # techically the "r.primary_key" check isn't
+        # technically the "r.primary_key" check isn't
         # needed here, but we check for this condition to limit
         # how often this logic is invoked for memory/performance
         # reasons, since we only need this info for a primary key
index 6aa94a51d44d7327d1b593d478d4e4a67e23ec59..2efbc3546ce85d1144a0269c16357519371df8cd 100644 (file)
@@ -2216,7 +2216,7 @@ class FromClause(Selectable):
         return fromclause in self._cloned_set
 
     def replace_selectable(self, old, alias):
-        """replace all occurences of FromClause 'old' with the given Alias 
+        """replace all occurrences of FromClause 'old' with the given Alias 
         object, returning a copy of this :class:`FromClause`.
 
         """
index 442d40587b9a129f03ab1d22e7fd8a9a1af289eb..9832d3c251ed54bb29e767c63ae5c432bd913270 100644 (file)
@@ -334,7 +334,7 @@ class Annotated(object):
             # detect immutable, don't change anything
             return self
         else:
-            # update the clone with any changes that have occured
+            # update the clone with any changes that have occurred
             # to this object's __dict__.
             clone.__dict__.update(self.__dict__)
             return Annotated(clone, self._annotations)
index e3168e2449268b78c0d3c8a88f02214814522148..e3bae2f55e63bd3bfb45db2f906902e7f74a4dbd 100644 (file)
@@ -384,7 +384,7 @@ class TypesTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL):
             meta.drop_all()
 
     def test_boolean(self):
-        """Test BOOL/TINYINT(1) compatability and reflection."""
+        """Test BOOL/TINYINT(1) compatibility and reflection."""
 
         meta = MetaData(testing.db)
         bool_table = Table(
index 0aaf036ede38959916b13222b29819625a3031da..05ab42f710d4603071d73cc56075bc134855622a 100644 (file)
@@ -444,7 +444,7 @@ class ExplicitAutoCommitTest(TestBase):
         eq_(conn2.execute(select([foo.c.data])).fetchall(), [('data1',
             )])
 
-        # connection supercedes statement
+        # connection supersedes statement
 
         conn1.execution_options(autocommit=False).\
             execute(select([func.insert_foo('data2'
index 5e07c73df37db40c3ed91a2195bd33e4f40c04d2..5a49bd4006063b2ea3ee597ff15417e7f3fe4bc2 100644 (file)
@@ -105,7 +105,7 @@ class ExpireTest(_fixtures.FixtureTest):
         s.rollback()
 
         assert u in s
-        # but now its back, rollback has occured, the _remove_newly_deleted
+        # but now its back, rollback has occurred, the _remove_newly_deleted
         # is reverted
         eq_(u.name, 'chuck')
 
@@ -1130,7 +1130,7 @@ class RefreshTest(_fixtures.FixtureTest):
     @testing.fails_on('maxdb', 'FIXME: unknown')
     @testing.resolve_artifact_names
     def test_refresh2(self):
-        """test a hang condition that was occuring on expire/refresh"""
+        """test a hang condition that was occurring on expire/refresh"""
 
         s = create_session()
         mapper(Address, addresses)
index 8484949548196fa0fa10f39344aa91ccd0732bf2..85c2c2516b78bd5f676672aebc3f75e33b019eb5 100644 (file)
@@ -2289,7 +2289,7 @@ class DontAllowFlushOnLoadingObjectTest(_base.MappedTest):
             @reconstructor
             def go(self):
                 # blow away 'id', no change event.
-                # this simulates a callable occuring
+                # this simulates a callable occurring
                 # before 'id' was even populated, i.e. a callable
                 # within an attribute_mapped_collection
                 self.__dict__.pop('id', None)
@@ -2321,7 +2321,7 @@ class DontAllowFlushOnLoadingObjectTest(_base.MappedTest):
         # and thing would right themselves.
         assert_raises_message(sa.orm.exc.FlushError,
                               'has a NULL identity key.  Check if this '
-                              'flush is occuring at an inappropriate '
+                              'flush is occurring at an inappropriate '
                               'time, such as during a load operation.',
                               sess.query(T1).first)