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

State.py: add function getTransitions.

parent d1165552
......@@ -74,6 +74,10 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix):
possible_transition_list.append(tr_path)
self.setCategoryList(possible_transition_list)
def getTransitions(self):
# return possible transition id list:
return self.getDestinationIdList()
def setPermission(self, permission, acquired, roles, REQUEST=None):
"""Set a permission for this State."""
permission_role = self.erp5_permission_roles
......
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