Commit 5a4ab808 authored by Nicolas Delaby's avatar Nicolas Delaby

improve perf

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15049 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 013e2a02
...@@ -1240,7 +1240,7 @@ class Subscription(Folder, SyncCode): ...@@ -1240,7 +1240,7 @@ class Subscription(Folder, SyncCode):
""" """
add a Signature to the subscription add a Signature to the subscription
""" """
if signature.getGid() in self.getGidList(): if self.getSignatureFromGid(signature.getGid()) != None:
self.delSignature(signature.getGid()) self.delSignature(signature.getGid())
self._setObject(signature.getGid(), aq_base(signature)) self._setObject(signature.getGid(), aq_base(signature))
......
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