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

SQUASH

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