]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 15 Oct 2005 04:09:48 +0000 (04:09 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 15 Oct 2005 04:09:48 +0000 (04:09 +0000)
lib/sqlalchemy/objectstore.py

index 1dc43886300b2a82191678c2fa28eebd5a50da35..a836c553f226faee7851136c843050d75964ab56 100644 (file)
@@ -209,9 +209,7 @@ class UnitOfWork(object):
                 for o in item.added_items() + item.deleted_items():
                     if self.deleted.contains(o):
                         continue
-                    # TODO: why is listonly = False ?  shouldnt we set it
-                    # True and have the PropertyLoader determine if it needs update?
-                    commit_context.register_object(o, listonly = False)
+                    commit_context.register_object(o, listonly=True)
             for obj in self.deleted:
                 commit_context.register_object(obj, isdelete=True)
                 
@@ -396,7 +394,7 @@ class UOWTask(object):
             rec['listonly'] = False
         if childtask:
             rec['childtask'] = childtask
-        #print "Task " + str(self) + " append object " + obj.__class__.__name__ + "/" + repr(id(obj)) + " listonly " + repr(listonly) + "/" + repr(self.objects[obj]['listonly'])        
+        print "Task " + str(self) + " append object " + obj.__class__.__name__ + "/" + repr(id(obj)) + " listonly " + repr(listonly) + "/" + repr(self.objects[obj]['listonly'])
         
     def execute(self, trans):
         """executes this UOWTask.  saves objects to be saved, processes all dependencies
@@ -409,7 +407,8 @@ class UOWTask(object):
             if task is not None:
                 task.execute_circular(trans)
             return
-            
+        
+        print "execute " + str(self)
         obj_list = [o for o, rec in self.objects.iteritems() if not rec['listonly']]
         if not self.isdelete:
             self.mapper.save_obj(obj_list, trans)