Commit a7bbfacb authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

id_as_reference.py: remove setRef, deploy suffix for workflow tool objects.

parent 68f23ad5
...@@ -78,17 +78,10 @@ def IdAsReferenceMixin(suffix): ...@@ -78,17 +78,10 @@ def IdAsReferenceMixin(suffix):
return getattr(aq_base(self), 'default_reference', (args or [None])[0]) return getattr(aq_base(self), 'default_reference', (args or [None])[0])
def _setReference(self, value): def _setReference(self, value):
self.__dict__.pop('default_reference', None) # BBB self.__dict__.pop('default_reference', None)
self.setId(value + suffix) self.setId(value + suffix)
security.declareProtected(Permissions.ModifyPortalContent, 'setReference') security.declareProtected(Permissions.ModifyPortalContent, 'setReference')
setReference = _setReference setReference = _setReference
def _setRef(self, value):
self.__dict__.pop('ref', None) # BBB
self.setId(suffix + value)
security.declareProtected(Permissions.ModifyPortalContent, 'setRef')
setRef = _setRef
return IdAsReferenceMixin return IdAsReferenceMixin
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