Commit 9c4f4b74 authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: clean up.

parent 3c5837e6
...@@ -249,8 +249,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -249,8 +249,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
return temp_workflow_list return temp_workflow_list
def dc_workflow_asERP5Object(self, container, dc_workflow, temp): def dc_workflow_asERP5Object(self, container, dc_workflow, temp):
# create a temporary ERP5 Workflow # convert DC Workflow to New Workflow
# instead of adding prefix toavoid id conflict, prefer to put dcworkflow in portal_trash;
workflow_type_id = dc_workflow.__class__.__name__ workflow_type_id = dc_workflow.__class__.__name__
if workflow_type_id == 'DCWorkflowDefinition': if workflow_type_id == 'DCWorkflowDefinition':
if temp == 0: if temp == 0:
...@@ -435,8 +434,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -435,8 +434,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
else: interaction.setExpression('') else: interaction.setExpression('')
interaction.setPortalTypeFilter(tdef.portal_type_filter) interaction.setPortalTypeFilter(tdef.portal_type_filter)
interaction.setPortalTypeGroupFilter(tdef.portal_type_group_filter) interaction.setPortalTypeGroupFilter(tdef.portal_type_group_filter)
# following 2 if are due to workflow migration compatibilities
if interaction.portal_type_filter == (): if interaction.portal_type_filter == ():
interaction.portal_type_filter = None interaction.portal_type_filter = None
if interaction.portal_type_group_filter == (): if interaction.portal_type_group_filter == ():
......
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