server/repository.py
changeset 6426 541659c39f6a
parent 6390 3766853656d7
child 6427 c8a5ac2d1eaa
--- a/server/repository.py	Sat Oct 09 00:05:49 2010 +0200
+++ b/server/repository.py	Sat Oct 09 00:05:50 2010 +0200
@@ -1031,8 +1031,7 @@
         and index the entity with the full text index
         """
         # begin by inserting eid/type/source/extid into the entities table
-        hook.set_operation(session, 'neweids', entity.eid,
-                           hook.CleanupNewEidsCacheOp)
+        hook.CleanupNewEidsCacheOp.get_instance(session).add_data(entity.eid)
         self.system_source.add_info(session, entity, source, extid, complete)
 
     def delete_info(self, session, entity, sourceuri, extid):
@@ -1041,8 +1040,7 @@
         """
         # mark eid as being deleted in session info and setup cache update
         # operation
-        hook.set_operation(session, 'pendingeids', entity.eid,
-                           hook.CleanupDeletedEidsCacheOp)
+        hook.CleanupDeletedEidsCacheOp.get_instance(session).add_data(entity.eid)
         self._delete_info(session, entity, sourceuri, extid)
 
     def _delete_info(self, session, entity, sourceuri, extid):