From 15808b0b681729c53261e2abef040ee09a7ad41a Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Wed, 12 Sep 2007 15:03:46 +0000
Subject: [PATCH] revert last commit on list comprehension modified part

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

diff --git a/product/ERP5SyncML/Publication.py b/product/ERP5SyncML/Publication.py
index 70d671c8bc..3f220a0bd6 100644
--- a/product/ERP5SyncML/Publication.py
+++ b/product/ERP5SyncML/Publication.py
@@ -221,8 +221,10 @@ class Publication(Subscription):
     """
       Delete a subscriber for this publication
     """
-    if subscription_url in [o.getSubscriptionUrl() for o in self.getSubscriberList()]:
-      self.manage_delObjects(o.id)
+    for o in self.getSubscriberList():
+      if o.getSubscriptionUrl() == subscription_url:
+        self.manage_delObjects(o.id)
+        break
 
   def resetAllSubscribers(self):
     """
-- 
2.30.9