Commit 0e11d658 authored by Aurel's avatar Aurel

use objectValues which is lazy

parent fbbab959
...@@ -488,7 +488,7 @@ class SyncMLSubscription(XMLObject): ...@@ -488,7 +488,7 @@ class SyncMLSubscription(XMLObject):
# XXX not efficient at all but must not be used (former way) # XXX not efficient at all but must not be used (former way)
syncml_logger.warning("Using non-efficient way to retrieve delete object on %s" syncml_logger.warning("Using non-efficient way to retrieve delete object on %s"
% (self.getRelativeUrl(),)) % (self.getRelativeUrl(),))
id_list = [x.getId() for x in self.contentValues() if \ id_list = [x.getId() for x in self.objectValues() if \
x.getValidationState() == "not_synchronized"] x.getValidationState() == "not_synchronized"]
for gid in id_list: for gid in id_list:
syncml_response.addDeleteCommand(gid=gid) syncml_response.addDeleteCommand(gid=gid)
......
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