server/ssplanner.py
changeset 6426 541659c39f6a
parent 6142 8bc6eac1fac1
child 6889 37668bf302f5
--- a/server/ssplanner.py	Sat Oct 09 00:05:49 2010 +0200
+++ b/server/ssplanner.py	Sat Oct 09 00:05:50 2010 +0200
@@ -651,13 +651,9 @@
         # mark eids as being deleted in session info and setup cache update
         # operation (register pending eids before actual deletion to avoid
         # multiple call to glob_delete_entity)
-        try:
-            pending = session.transaction_data['pendingeids']
-        except KeyError:
-            pending = session.transaction_data['pendingeids'] = set()
-            CleanupDeletedEidsCacheOp(session)
-        actual = todelete - pending
-        pending |= actual
+        op = CleanupDeletedEidsCacheOp.get_instance(session)
+        actual = todelete - op._container
+        op._container |= actual
         for eid in actual:
             delete(session, eid)
         return results