diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-01 00:10:37 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-01 00:10:37 +0000 |
| commit | 3d10187bd3180ec32ba7f329fc3bcff725d2ef79 (patch) | |
| tree | adf909d8dac13444c1a8752223422e72ed7129eb /lib/sqlalchemy/orm | |
| parent | 34b3bbd034485737114814f4ba599f9778f44c59 (diff) | |
| download | sqlalchemy-3d10187bd3180ec32ba7f329fc3bcff725d2ef79.tar.gz | |
- global "insure"->"ensure" change. in US english "insure" is actually
largely interchangeable with "ensure" (so says the dictionary), so I'm not
completely illiterate, but its definitely sub-optimal to "ensure" which is
non-ambiguous.
Diffstat (limited to 'lib/sqlalchemy/orm')
| -rw-r--r-- | lib/sqlalchemy/orm/dependency.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/mapper.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/query.py | 4 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/unitofwork.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/orm/dependency.py b/lib/sqlalchemy/orm/dependency.py index 4106d5c37..a49d216ae 100644 --- a/lib/sqlalchemy/orm/dependency.py +++ b/lib/sqlalchemy/orm/dependency.py @@ -70,7 +70,7 @@ class DependencyProcessor(object): raise NotImplementedError() def preprocess_dependencies(self, task, deplist, uowcommit, delete = False): - """used before the flushes' topological sort to traverse through related objects and insure every + """used before the flushes' topological sort to traverse through related objects and ensure every instance which will require save/update/delete is properly added to the UOWTransaction.""" raise NotImplementedError() diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index 7de513508..6c155f207 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -94,7 +94,7 @@ class Mapper(object): information was loaded from the database. version_id_col - a Column which must have an integer type that will be used to keep a running "version id" of - mapped entities in the database. this is used during save operations to insure that no other thread or process + mapped entities in the database. this is used during save operations to ensure that no other thread or process has updated the instance during the lifetime of the entity, else a ConcurrentModificationError exception is thrown. polymorphic_on - used with mappers in an inheritance relationship, a Column which will identify the class/mapper diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 6c978f362..425a7160d 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -235,7 +235,7 @@ class Query(object): For more advanced usage, arg can also be a Select statement object, which will be executed and its resulting rowset used to build new object instances. - in this case, the developer must insure that an adequate set of columns exists in the + in this case, the developer must ensure that an adequate set of columns exists in the rowset with which to build new object instances.""" ret = self.extension.select(self, arg=arg, **kwargs) @@ -455,7 +455,7 @@ class Query(object): if order_by: statement.order_by(*util.to_list(order_by)) # for a DISTINCT query, you need the columns explicitly specified in order - # to use it in "order_by". insure they are in the column criterion (particularly oid). + # to use it in "order_by". ensure they are in the column criterion (particularly oid). # TODO: this should be done at the SQL level not the mapper level if kwargs.get('distinct', False) and order_by: [statement.append_column(c) for c in util.to_list(order_by)] diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py index 3f2583eaf..34da55780 100644 --- a/lib/sqlalchemy/orm/unitofwork.py +++ b/lib/sqlalchemy/orm/unitofwork.py @@ -305,7 +305,7 @@ class UOWTransaction(object): task.dependencies.add(up) def execute(self): - # insure that we have a UOWTask for every mapper that will be involved + # ensure that we have a UOWTask for every mapper that will be involved # in the topological sort [self.get_task_by_mapper(m) for m in self._get_noninheriting_mappers()] |
