[Erp5-report] r16305 - /erp5/trunk/products/ERP5SyncML/Publication.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 12 17:03:46 CEST 2007
Author: nicolas
Date: Wed Sep 12 17:03:46 2007
New Revision: 16305
URL: http://svn.erp5.org?rev=16305&view=rev
Log:
revert last commit on list comprehension modified part
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=16305&r1=16304&r2=16305&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Publication.py (original)
+++ erp5/trunk/products/ERP5SyncML/Publication.py Wed Sep 12 17:03:46 2007
@@ -221,8 +221,10 @@
"""
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):
"""
More information about the Erp5-report
mailing list