Commit 9129ad08 authored by wenjie.zheng's avatar wenjie.zheng

State.py: add function getTransitions.

parent 8b5a9d3a
......@@ -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