Commit 3206f19f authored by Nicolas Delaby's avatar Nicolas Delaby

Improve sync API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 82866741
......@@ -1269,13 +1269,7 @@ class Subscription(Folder, SyncCode):
"""
return the signature corresponding to the gid
"""
o = None
# XXX very slow
for signature in self.getSignatureList():
if gid == signature.getGid():
o = signature
break
return o
return getattr(self, gid, None)
def getSignatureFromRid(self, rid):
"""
......
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