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

Workflow.py: get script by reference.

parent f94c619c
...@@ -549,7 +549,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): ...@@ -549,7 +549,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
def getScriptValueList(self): def getScriptValueList(self):
scripts = {} scripts = {}
for script in self.objectValues(portal_type='Workflow Script'): for script in self.objectValues(portal_type='Workflow Script'):
scripts[script.getId()] = script scripts[script.getReference()] = script
return scripts return scripts
def notifyWorkflowMethod(self, ob, transition_list, args=None, kw=None): def notifyWorkflowMethod(self, ob, transition_list, args=None, kw=None):
......
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