Commit 8958b617 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not use ERP5TransitionDefinition for getAvailableScriptIds.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4691 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7e99ce34
...@@ -295,9 +295,9 @@ class ERP5TransitionDefinition (TransitionDefinition): ...@@ -295,9 +295,9 @@ class ERP5TransitionDefinition (TransitionDefinition):
""" """
pass pass
def getAvailableScriptIds(self): def getAvailableScriptIds(self):
return self.getWorkflow().scripts.keys() + \ return self.getWorkflow().scripts.keys() + \
[k for k in self.getWorkflow().transitions.keys() if \ [k for k in self.getWorkflow().transitions.keys() if \
self.getWorkflow().transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD] self.getWorkflow().transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD]
TransitionDefinition.getAvailableScriptIds = ERP5TransitionDefinition.getAvailableScriptIds TransitionDefinition.getAvailableScriptIds = getAvailableScriptIds
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