Commit 15808b0b authored by Nicolas Delaby's avatar Nicolas Delaby

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
parent 741d0c51
......@@ -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):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment