diff idavoll/generic_backend.py @ 142:812300cdbc22

Changed behaviour of retraction of items so that only the actually deleted item ids are returned, and no exception is raised for items that didn't actually exists.
author Ralph Meijer <ralphm@ik.nu>
date Tue, 12 Jul 2005 09:23:00 +0000
parents 43102fecb14b
children 5b0b3f013ccc
line wrap: on
line diff
--- a/idavoll/generic_backend.py	Tue Jun 14 12:12:23 2005 +0000
+++ b/idavoll/generic_backend.py	Tue Jul 12 09:23:00 2005 +0000
@@ -321,10 +321,10 @@
             raise backend.NodeNotPersistent
                                                                                 
         d = node.remove_items(item_ids)
-        d.addCallback(self._do_notify_retraction, item_ids, node.id)
+        d.addCallback(self._do_notify_retraction, node.id)
         return d
                                                                                 
-    def _do_notify_retraction(self, result, item_ids, node_id):
+    def _do_notify_retraction(self, item_ids, node_id):
         self.parent.dispatch({ 'item_ids': item_ids, 'node_id': node_id },
                              '//event/pubsub/retract')