]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Global propigate -> propagate change to correct spelling. Additionally found a couple...
authorMichael Trier <mtrier@gmail.com>
Sun, 9 Nov 2008 01:53:08 +0000 (01:53 +0000)
committerMichael Trier <mtrier@gmail.com>
Sun, 9 Nov 2008 01:53:08 +0000 (01:53 +0000)
CHANGES
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
test/engine/parseconnect.py
test/orm/eager_relations.py
test/orm/inheritance/polymorph2.py
test/orm/relationships.py
test/perf/massload.py
test/sql/query.py
test/sql/testtypes.py

diff --git a/CHANGES b/CHANGES
index 512e9bdd9235f265c642e14f651dc583c128c11b..7aa77e89ebd7a8382c09748c1b98aca3b05be48d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,9 @@ CHANGES
 0.5.0rc4
 ========
 - bugfixes and behavioral changes
+- general:
+  - global "propigate"->"propagate" change.
+
 - orm
     - Query.count() and Query.get() return a more informative
       error message when executed against multiple entities.
@@ -171,7 +174,7 @@ CHANGES
       FromClause objects.
 
     - Repaired the table.tometadata() method so that a
-      passed-in schema argument is propigated to
+      passed-in schema argument is propagated to
       ForeignKey constructs.
       
     - Slightly changed behavior of IN operator for
@@ -3231,7 +3234,7 @@ full changes between 0.4/0.5.
   - _Label class overrides compare_self to return its ultimate
     object. meaning, if you say someexpr.label('foo') == 5, it
     produces the correct "someexpr == 5".
-  - _Label propigates "_hide_froms()" so that scalar selects
+  - _Label propagates "_hide_froms()" so that scalar selects
     behave more properly with regards to FROM clause #574
   - fix to long name generation when using oid_column as an order by
     (oids used heavily in mapper queries)
@@ -3263,7 +3266,7 @@ full changes between 0.4/0.5.
   - many-to-many relationships check that the number of rows deleted
     from the association table by a delete operation matches the
     expected results
-  - session.get() and session.load() propigate **kwargs through to
+  - session.get() and session.load() propagate **kwargs through to
     query
   - fix to polymorphic query which allows the original
     polymorphic_union to be embedded into a correlated subquery
@@ -3271,7 +3274,7 @@ full changes between 0.4/0.5.
   - fix to select_by(<propname>=<object instance>) -style joins in
     conjunction with many-to-many relationships, bug introduced in
     r2556
-  - the "primary_key" argument to mapper() is propigated to the
+  - the "primary_key" argument to mapper() is propagated to the
     "polymorphic" mapper. primary key columns in this list get
     normalized to that of the mapper's local table.
   - restored logging of "lazy loading clause" under
@@ -3364,7 +3367,7 @@ full changes between 0.4/0.5.
       are to work around glitchy SQLite behavior that doesnt understand
       "foo.id" as equivalent to "id", are now only generated in the case
       that those named columns are selected from (part of [ticket:513])
-    - the label() method on ColumnElement will properly propigate the
+    - the label() method on ColumnElement will properly propagate the
       TypeEngine of the base element out to the label, including a label()
       created from a scalar=True select() statement.
     - MS-SQL better detects when a query is a subquery and knows not to
@@ -3377,7 +3380,7 @@ full changes between 0.4/0.5.
       for **kwargs compat
     - slight tweak to raw execute() change to also support tuples
       for positional parameters, not just lists [ticket:523]
-    - fix to case() construct to propigate the type of the first
+    - fix to case() construct to propagate the type of the first
       WHEN condition as the return type of the case statement
 - orm:
     - fixed critical issue when, after options(eagerload()) is used,
@@ -3484,7 +3487,7 @@ full changes between 0.4/0.5.
 
     - quoting wont occur for literal columns when they are "proxied" into
       the column collection for their selectable (is_literal flag is
-      propigated). literal columns are specified via
+      propagated). literal columns are specified via
       literal_column("somestring").
 
     - added "fold_equivalents" boolean argument to Join.select(), which
@@ -3572,7 +3575,7 @@ full changes between 0.4/0.5.
       occur on the "backref" side of the operation [ticket:249]
 
     - added "refresh-expire" cascade [ticket:492].  allows refresh() and
-      expire() calls to propigate along relationships.
+      expire() calls to propagate along relationships.
 
     - more fixes to polymorphic relations, involving proper lazy-clause
       generation on many-to-one relationships to polymorphic mappers
@@ -3634,7 +3637,7 @@ full changes between 0.4/0.5.
     - also fixed CLOB read/write on a separate changeset.
 
     - auto_setinputsizes defaults to True for Oracle, fixed cases where
-      it improperly propigated bad types.
+      it improperly propagated bad types.
 
 - mysql:
     - added a catchall **kwargs to MSString, to help reflection of
@@ -3663,7 +3666,7 @@ full changes between 0.4/0.5.
     - fixed named PrimaryKeyConstraint generation [ticket:466] courtesy
       andrija at gmail
     - fixed generation of CHECK constraints on columns [ticket:464]
-    - fixes to tometadata() operation to propigate Constraints at column and
+    - fixes to tometadata() operation to propagate Constraints at column and
       table level
 - oracle:
     - when returning "rowid" as the ORDER BY column or in use with ROW_NUMBER
@@ -3713,7 +3716,7 @@ full changes between 0.4/0.5.
       now patches an "options" method, in conjunction with a relationship
       named "options". (relationships take precedence over monkeypatched
       assign_mapper methods).
-    - extension() query option propigates to Mapper._instance() method so that
+    - extension() query option propagates to Mapper._instance() method so that
       all loading-related methods get called [ticket:454]
     - eager relation to an inheriting mapper wont fail if no rows returned for
       the relationship.
@@ -3870,7 +3873,7 @@ full changes between 0.4/0.5.
   - added an error message if you actually try to modify primary key values on
     an entity and then flush it [ticket:412]
 - extensions
-  - added "validate=False" argument to assign_mapper, if True will insure that
+  - added "validate=False" argument to assign_mapper, if True will ensure that
     only mapped attributes are named [ticket:426]
   - assign_mapper gets "options", "instances" functions added (i.e.
     MyClass.instances())
@@ -3912,8 +3915,8 @@ fixes [ticket:388]
 - added label() function to Select class, when scalar=True is used
 to create a scalar subquery
 i.e. "select x, y, (select max(foo) from table) AS foomax from table"
-- added onupdate and ondelete keyword arguments to ForeignKey; propigate
-to underlying ForeignKeyConstraint if present.  (dont propigate in the
+- added onupdate and ondelete keyword arguments to ForeignKey; propagate
+to underlying ForeignKeyConstraint if present.  (dont propagate in the
 other direction, however)
 - fix to session.update() to preserve "dirty" status of incoming object
 - sending a selectable to an IN via the in_() function no longer creates
@@ -4083,7 +4086,7 @@ the instance is an "orphan" only if its not attached to *any* of those parents
     - a wide refactoring to "attribute loader" and "options" architectures.
     ColumnProperty and PropertyLoader define their loading behaivor via switchable
     "strategies", and MapperOptions no longer use mapper/property copying
-    in order to function; they are instead propigated via QueryContext
+    in order to function; they are instead propagated via QueryContext
     and SelectionContext objects at query/instances time.
     All of the internal copying of mappers and properties that was used to handle
     inheritance as well as options() has been removed; the structure
@@ -4247,9 +4250,9 @@ sort) dont have to worry about maintaining order (which they werent anyway)
 if it was not loaded already
 - [ticket:256] - pass URL query string arguments to connect() function
 - [ticket:257] - oracle boolean type
-- custom primary/secondary join conditions in a relation *will* be propigated
+- custom primary/secondary join conditions in a relation *will* be propagated
 to backrefs by default.  specifying a backref() will override this behavior.
-- better check for ambiguous join conditions in sql.Join; propigates to a
+- better check for ambiguous join conditions in sql.Join; propagates to a
 better error message in PropertyLoader (i.e. relation()/backref()) for when
 the join condition can't be reasonably determined.
 - sqlite creates ForeignKeyConstraint objects properly upon table
@@ -4318,7 +4321,7 @@ a flush() under some circumstances, this was fixed
 propname the same as another, for the purposes of overriding props
 and allowing the original propname to be accessible in select_by().
 - fix to typing in clause construction which specifically helps
-type issues with polymorphic_union (CAST/ColumnClause propigates
+type issues with polymorphic_union (CAST/ColumnClause propagates
 its type to proxy columns)
 - mapper compilation work ongoing, someday it'll work....moved
 around the initialization of MapperProperty objects to be after
@@ -4379,8 +4382,8 @@ causing a reentrant hang unless threading.RLock is used.
 - postgres will not place SERIAL keyword on a primary key column
 if it has a foreign key constraint
 - cursor() method on ConnectionFairy allows db-specific extension
-arguments to be propigated [ticket:221]
-- lazy load bind params properly propigate column type [ticket:225]
+arguments to be propagated [ticket:221]
+- lazy load bind params properly propagate column type [ticket:225]
 - new MySQL types: MSEnum, MSTinyText, MSMediumText, MSLongText, etc.
 more support for MS-specific length/precision params in numeric types
 patch courtesy Mike Bernson
@@ -4424,7 +4427,7 @@ __doc__ from the original class
 [ticket:200]
 - small tweak to cascade_mappers, not very strongly supported
 function at the moment
-- some fixes to between(), column.between() to propigate typing
+- some fixes to between(), column.between() to propagate typing
 information better [ticket:202]
 - if an object fails to be constructed, is not added to the
 session [ticket:203]
@@ -4462,7 +4465,7 @@ out will use the default metadata.
 - more fixes to threadlocal connection nesting patterns
 
 0.2.1
-- "pool" argument to create_engine() properly propigates
+- "pool" argument to create_engine() properly propagates
 - fixes to URL, raises exception if not parsed, does not pass blank
 fields along to the DB connect string (a string such as
 user:host@/db was breaking on postgres)
@@ -4524,7 +4527,7 @@ doesnt get compiled, fixes [ticket:147]
 "threadlocal" mod if used
 - mods now called in via "import <modname>".  extensions favored over
 mods as mods are globally-monkeypatching
-- fix to add_property so that it propigates properties to inheriting
+- fix to add_property so that it propagates properties to inheriting
 mappers [ticket:154]
 - backrefs create themselves against primary mapper of its originating
 property, priamry/secondary join arguments can be specified to override.
index 63e144cd4387a75dad7910b2156ab266c85bdafa..2fc72e8130f8df61bdb594ab7e60204bec059aad 100644 (file)
@@ -313,7 +313,7 @@ class PropertyLoader(StrategizedProperty):
         self.order_by = order_by
 
         if isinstance(backref, str):
-            # propigate explicitly sent primary/secondary join conditions to the BackRef object if
+            # propagate explicitly sent primary/secondary join conditions to the BackRef object if
             # just a string was sent
             if secondary is not None:
                 # reverse primary/secondary in case of a many-to-many
index 851bc30ac6dbbddcd85ae403dcd4daa72c7bd319..80a4d7f52a964ae09abe15daed902d5368971197 100644 (file)
@@ -475,7 +475,7 @@ class DefaultCompiler(engine.Compiled):
 
         correlate_froms = set(sql._from_objects(*froms))
 
-        # TODO: might want to propigate existing froms for select(select(select))
+        # TODO: might want to propagate existing froms for select(select(select))
         # where innermost select should correlate to outermost
         # if existingfroms:
         #     correlate_froms = correlate_froms.union(existingfroms)
index 2838cc896adebbc477e09ca525572c10a3785e4a..2fa3fc36f939d0f8503b7fe8a700bd5698ce3cb2 100644 (file)
@@ -2791,7 +2791,7 @@ class _ColumnClause(_Immutable, ColumnElement):
         return _BindParamClause(self.name, obj, type_=self.type, unique=True)
 
     def _make_proxy(self, selectable, name=None, attach=True):
-        # propigate the "is_literal" flag only if we are keeping our name,
+        # propagate the "is_literal" flag only if we are keeping our name,
         # otherwise its considered to be a label
         is_literal = self.is_literal and (name is None or name == self.name)
         c = _ColumnClause(name or self.name, selectable=selectable, type_=self.type, is_literal=is_literal)
index 1f7d09c9df7aa77838b6d269469ce547194fc616..c82ca6d58d38568a468523dd46232e21127465cd 100644 (file)
@@ -38,7 +38,7 @@ class ParseConnectTest(TestBase):
             assert str(u) == text
 
 class CreateEngineTest(TestBase):
-    """test that create_engine arguments of different types get propigated properly"""
+    """test that create_engine arguments of different types get propagated properly"""
     def test_connect_query(self):
         dbapi = MockDBAPI(foober='12', lala='18', fooz='somevalue')
 
index f329fff668db1e4e2c0eaa81f04ee3fa90ec9831..dc7349b4f4d4118cc79c32662cd4ee8fb19f8f80 100644 (file)
@@ -491,7 +491,7 @@ class EagerTest(_fixtures.FixtureTest):
     @testing.fails_on('maxdb')
     @testing.resolve_artifact_names
     def test_limit_3(self):
-        """test that the ORDER BY is propigated from the inner select to the outer select, when using the
+        """test that the ORDER BY is propagated from the inner select to the outer select, when using the
         'wrapped' select statement resulting from the combination of eager loading and limit/offset clauses."""
 
         mapper(Item, items)
index faf8dc103b16d2a2e8fbe4b3fac7657326e68441..fc65e22b53d60d32cdc6fcd6e2d462301c9c90ed 100644 (file)
@@ -878,7 +878,7 @@ class CustomPKTest(ORMTest):
             Column('t2data', String(30)))
 
     def test_custompk(self):
-        """test that the primary_key attribute is propigated to the polymorphic mapper"""
+        """test that the primary_key attribute is propagated to the polymorphic mapper"""
 
         class T1(object):pass
         class T2(T1):pass
index 2989fcda90fa4a1981e0ee79121cb8817d41e4d5..00bc35a7f78bd56ff9dadc2763c9240a7b2c0586 100644 (file)
@@ -12,7 +12,7 @@ class RelationTest(_base.MappedTest):
 
     This is essentially an extension of the "dependency.py" topological sort
     test.  In this test, a table is dependent on two other tables that are
-    otherwise unrelated to each other.  The dependency sort must insure that
+    otherwise unrelated to each other.  The dependency sort must ensure that
     this childmost table is below both parent tables in the outcome (a bug
     existed where this was not always the case).
 
index 83433308383e50404e46be72159b0d11bc043c0a..9391ead2a54190e31b889cceb4a623232a46ae5d 100644 (file)
@@ -47,7 +47,7 @@ class LoadTest(TestBase, AssertsExecutionResults):
             l = query.filter(items.c.item_id.between(x*100 - 100 + 1, x*100)).all()
             assert len(l) == 100
             print "loaded ", len(l), " items "
-            # modifying each object will insure that the objects get placed in the "dirty" list
+            # modifying each object will ensure that the objects get placed in the "dirty" list
             # and will hang around until expunged
             #for a in l:
             #    a.value = 'changed...'
index ac11b445228dac9a6eb8687defb55970f55e8152..011ced602dca38d0a07dde856dcda38375347d26 100644 (file)
@@ -339,7 +339,7 @@ class QueryTest(TestBase):
 
     @testing.exclude('mysql', '<', (5, 0, 37), 'database bug')
     def test_scalar_select(self):
-        """test that scalar subqueries with labels get their type propigated to the result set."""
+        """test that scalar subqueries with labels get their type propagated to the result set."""
         # mysql and/or mysqldb has a bug here, type isn't propagated for scalar
         # subquery.
         datetable = Table('datetable', metadata,
index eb032195636c31bd9e39732528bfcf5b5f512798..457deb44ed2c4a373a4abdf553f993c3e5ce2935 100644 (file)
@@ -34,7 +34,7 @@ class AdaptTest(TestBase):
 
     def testmsnvarchar(self):
         dialect = mssql.MSSQLDialect()
-        # run the test twice to insure the caching step works too
+        # run the test twice to ensure the caching step works too
         for x in range(0, 1):
             col = Column('', Unicode(length=10))
             dialect_type = col.type.dialect_impl(dialect)