From 1acda91a12a5561a4cfda672bf18a98ee70618b8 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 24 Jan 2006 04:20:11 +0000 Subject: [PATCH] adds a traversed list to the list of things to clean up --- lib/sqlalchemy/mapping/objectstore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.2