From e9d21af71c840faf79b2fd36f9cdf560568d4154 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 21 Jul 2004 15:18:15 +0000
Subject: [PATCH] another changed to make sure all objects are deleted in
 resetSignature

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1284 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5SyncML/Subscription.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5SyncML/Subscription.py b/product/ERP5SyncML/Subscription.py
index 4c5f0ecb74..4b4212f2ea 100755
--- a/product/ERP5SyncML/Subscription.py
+++ b/product/ERP5SyncML/Subscription.py
@@ -986,8 +986,9 @@ class Subscription(Folder, SyncCode):
       Reset all signatures
     """
     #self.signatures = PersistentMapping()
-    for id in self.objectIds():
-      self._delObject(id)
+    while len(self.objectIds())>0:
+      for id in self.objectIds():
+        self._delObject(id)
 
 
   def getGidList(self):
-- 
2.30.9