Commit 5b127fe9 authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Romain Courteaud

SQUASH

parent 6aefc554
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Convert workflows to ERP5 Workflows</string> </value>
<value> <string>Convert DCWorkflow to ERP5 Workflows</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......@@ -79,7 +79,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/BusinessTemplate_convertToERP5Workflows</string> </value>
<value> <string>string:${object_url}/BusinessTemplate_convertAllDCWorkflowToERP5Workflow</string> </value>
</item>
</dictionary>
</pickle>
......
workflow_tool = context.getPortalObject()
workflow_tool = context.getPortalObject().portal_workflow
unknown_workflow_id_list = []
for workflow_id in context.getTemplateWorkflowIdList():
try:
......
......@@ -644,7 +644,7 @@ def StateDefinition_getDestinationIdList(self):
return self.transitions
def StateDefinition_getDestinationValueList(self):
if self.transitions: # empty tuple by default
return [v for i, v in self.getWorkflow().transitions.iteritems()
return [v for i, v in self.getWorkflow().transitions.items()
if i in self.transitions]
return []
def StateDefinition_getStateTypeList(self):
......
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