[Erp5-report] r24158 - /erp5/trunk/products/ERP5SyncML/Publication.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 13 13:25:01 CEST 2008


Author: nicolas
Date: Mon Oct 13 13:24:57 2008
New Revision: 24158

URL: http://svn.erp5.org?rev=24158&view=rev
Log:
Reset subscribers before delete them

Modified:
    erp5/trunk/products/ERP5SyncML/Publication.py

Modified: erp5/trunk/products/ERP5SyncML/Publication.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Publication.py?rev=24158&r1=24157&r2=24158&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Publication.py (original)
+++ erp5/trunk/products/ERP5SyncML/Publication.py Mon Oct 13 13:24:57 2008
@@ -230,9 +230,13 @@
     """
       Reset all subscribers
     """
-    id_list = [o.id for o in self.getSubscriberList()]
+    id_list = []
+    for subscriber in self.getSubscriberList():
+      subscriber.resetAllSignatures()
+      id_list.append(subscriber.getId())
     self.activate(activity='SQLQueue',
                   tag=self.getId(),
+                  after_tag=id_list,
                   priority=self.PRIORITY).manage_delObjects(id_list)
 
   def getConflictList(self):




More information about the Erp5-report mailing list