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

InteractionWorkflow.py: add an universal method to get dict of workflow script values.

parent fc549c97
......@@ -231,6 +231,13 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
def _getWorkflowStateOf(self, ob, id_only=0):
return None
security.declarePrivate('getScriptValueList')
def getScriptValueList(self):
scripts = {}
for script in self.objectValues(portal_type='Workflow Script'):
scripts[script.getId()] = script
return scripts
security.declarePrivate('getTransitionValueList')
def getTransitionValueList(self):
interaction_dict = {}
......
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