]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Sep 2005 03:43:33 +0000 (03:43 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Sep 2005 03:43:33 +0000 (03:43 +0000)
lib/sqlalchemy/objectstore.py

index caa1ee9cfaf635c7c179107bbc9ab63ab0141739..e9365176f3119c0e9a5ecdd9a45e9ff4e4c88d32 100644 (file)
@@ -223,6 +223,9 @@ class UnitOfWork(object):
     def register_deleted(self, obj):
         pass   
 
+    # TODO: add begin().  tie in register_new/register_dirty with table transaction begins ?
+    
+    # TODO: add optional args for "i only want to save/delete these objects, not the whole thing"
     def commit(self):
         import sqlalchemy.mapper
         
@@ -254,11 +257,9 @@ class UnitOfWork(object):
                 return 0
         mapperlist.sort(compare)
         
-        # TODO: break save_obj into a list of tasks that are more SQL-specific
         for task in mapperlist:
             obj_list = task.objects
-            for obj in obj_list:
-                task.mapper.save_obj(obj)
+            task.mapper.save_obj(obj_list)
             for dep in task.dependencies:
                 (processor, stuff_to_process) = dep
                 processor.process_dependencies(stuff_to_process, self)