[repo] don't execute child step twice in EntitiesDeleteStep stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 29 Mar 2010 13:26:20 +0200
branchstable
changeset 5058 6dfeb8e75188
parent 5057 d1bd50ae0edd
child 5059 1d5c81588144
[repo] don't execute child step twice in EntitiesDeleteStep
server/ssplanner.py
--- a/server/ssplanner.py	Mon Mar 29 13:25:13 2010 +0200
+++ b/server/ssplanner.py	Mon Mar 29 13:26:20 2010 +0200
@@ -507,7 +507,7 @@
     def execute(self):
         """execute this step"""
         results = self.execute_child()
-        todelete = frozenset(typed_eid(eid) for eid, in self.execute_child())
+        todelete = frozenset(typed_eid(eid) for eid, in results)
         session = self.plan.session
         delete = session.repo.glob_delete_entity
         # register pending eids first to avoid multiple deletion