Commit 298a2406 authored by Nicolas Delaby's avatar Nicolas Delaby

Increase performance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11fb9734
......@@ -1376,9 +1376,9 @@ class Subscription(Folder, SyncCode):
remaining_object_list = self.getRemainingObjectPathList()
if remaining_object_list is not None:
new_list = []
for o in remaining_object_list:
if o != object_path:
new_list.append(o)
new_list.extend(remaining_object_list)
while object_path in new_list:
new_list.remove(object_path)
self.setRemainingObjectPathList(new_list)
def startSynchronization(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