]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
continued cleanup
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Oct 2006 00:09:18 +0000 (00:09 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Oct 2006 00:09:18 +0000 (00:09 +0000)
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/strategies.py

index 9c87eb0b340dba26b5b6fafca5d20d63b7b63951..3ce297d1c3367879fd683def373c030e2ecf792e 100644 (file)
@@ -67,7 +67,6 @@ class DependencyProcessor(object):
         insert/update/delete order (topological sort)."""
         raise NotImplementedError()
 
-    # TODO: all of these preproc rules need to take dependencies into account
     def preprocess_dependencies(self, task, deplist, uowcommit, delete = False):
         """used before the flushes' topological sort to traverse through related objects and insure every 
         instance which will require save/update/delete is properly added to the UOWTransaction."""
@@ -80,7 +79,7 @@ class DependencyProcessor(object):
 
     def _compile_synchronizers(self):
         """assembles a list of 'synchronization rules', which are instructions on how to populate
-        the objects on each side of a relationship.  This is done when a PropertyLoader is 
+        the objects on each side of a relationship.  This is done when a DependencyProcessor is 
         first initialized.
 
         The list of rules is used within commits by the _synchronize() method when dependent 
index ed48d40cf15f4fc19c9b4cbe9675876b6b2e8568..9a6b404a0211966e64cf69312473bb824a4e0f18 100644 (file)
@@ -22,8 +22,6 @@ class MapperProperty(object):
         return []
     def cascade_callable(self, type, object, callable_, recursive=None):
         return []
-    def copy(self):
-        raise NotImplementedError()
     def get_criterion(self, query, key, value):
         """Returns a WHERE clause suitable for this MapperProperty corresponding to the 
         given key/value pair, where the key is a column or object property name, and value
@@ -46,9 +44,6 @@ class MapperProperty(object):
     def do_init(self):
         """template method for subclasses"""
         pass
-    def register_deleted(self, object, uow):
-        """called when the instance is being deleted"""
-        pass
     def register_dependencies(self, *args, **kwargs):
         """called by the Mapper in response to the UnitOfWork calling the Mapper's
         register_dependencies operation.  Should register with the UnitOfWork all 
index 163117e6aca231ad47608c5e00c623a8daa3d3a8..af39950390b0fb6f1b2f88b7c6cc96b79f34e6e2 100644 (file)
@@ -5,8 +5,9 @@
 # the MIT License: http://www.opensource.org/licenses/mit-license.php
 
 """defines a set of mapper.MapperProperty objects, including basic column properties as 
-well as relationships.  also defines some MapperOptions that can be used with the
-properties."""
+well as relationships.  the objects rely upon the LoaderStrategy objects in the strategies.py
+module to handle load operations.  PropertyLoader also relies upon the dependency.py module
+to handle flush-time dependency sorting and processing."""
 
 from sqlalchemy import sql, schema, util, attributes, exceptions, sql_util, logging
 import mapper
index 8459ba5396bed6b4d072aeeefeeea28c33b56cea..9b25226404e138c91da644335408c263d245412b 100644 (file)
@@ -11,6 +11,7 @@ import session as sessionlib
 import util as mapperutil
 import sets, random
 
+"""sqlalchemy.orm.interfaces.LoaderStrategy implementations, and related MapperOptions."""
 
 class ColumnLoader(LoaderStrategy):
     def init(self):