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

State.py: add an universal reference getter.

parent 8b42ab4a
......@@ -178,6 +178,12 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix):
def getWorkflow(self):
return aq_parent(aq_inner(aq_parent(aq_inner(self))))
def getDestinationReferenceList(self):
ref_list = []
for tr in self.getDestinationValueList():
ref_list.append(tr.getReference())
return ref_list
def setGroups(self, REQUEST, RESPONSE=None):
"""Set the group to role mappings in REQUEST for this State.
"""
......
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