From: Mike Bayer Date: Tue, 24 Jan 2006 04:20:11 +0000 (+0000) Subject: adds a traversed list to the list of things to clean up X-Git-Tag: rel_0_1_0~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1acda91a12a5561a4cfda672bf18a98ee70618b8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git adds a traversed list to the list of things to clean up --- diff --git a/lib/sqlalchemy/mapping/objectstore.py b/lib/sqlalchemy/mapping/objectstore.py index 8dfa785e8f..66207329c3 100644 --- a/lib/sqlalchemy/mapping/objectstore.py +++ b/lib/sqlalchemy/mapping/objectstore.py @@ -263,6 +263,7 @@ class UnitOfWork(object): if self.deleted.contains(obj): continue commit_context.register_object(obj, listonly = True) + commit_context.register_saved_list(item) for o in item.added_items() + item.deleted_items(): if self.deleted.contains(o): continue @@ -334,7 +335,6 @@ class UOWTransaction(object): save/delete operation on the object itself, unless an additional save/delete registration is entered for the object.""" #print "REGISTER", repr(obj), repr(getattr(obj, '_instance_key', None)), str(isdelete), str(listonly) - # things can get really confusing if theres duplicate instances floating around, # so make sure everything is OK if hasattr(obj, '_instance_key') and not self.uow.identity_map.has_key(obj._instance_key):