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

WorkflowTool.py: get type id without using qccessor.

parent ea274355
...@@ -106,6 +106,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -106,6 +106,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
# Declarative Security # Declarative Security
security = ClassSecurityInfo() security = ClassSecurityInfo()
_product_interfaces = OriginalWorkflowTool._product_interfaces
_chains_by_type = OriginalWorkflowTool._chains_by_type
_default_chain = OriginalWorkflowTool._default_chain
_default_cataloging = OriginalWorkflowTool._default_cataloging
manage_options = OriginalWorkflowTool.manage_options manage_options = OriginalWorkflowTool.manage_options
manage_overview = OriginalWorkflowTool.manage_overview manage_overview = OriginalWorkflowTool.manage_overview
_manage_selectWorkflows = OriginalWorkflowTool._manage_selectWorkflows _manage_selectWorkflows = OriginalWorkflowTool._manage_selectWorkflows
...@@ -555,7 +559,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -555,7 +559,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
tr_var_path = '/'.join(tr_var_path.split('/')[2:]) tr_var_path = '/'.join(tr_var_path.split('/')[2:])
new_category.append(tr_var_path) new_category.append(tr_var_path)
tr_var.setCausalityList(new_category) tr_var.setCausalityList(new_category)
# move dc workflow to trash bin
self._finalizeWorkflowConversion(dc_workflow) self._finalizeWorkflowConversion(dc_workflow)
# override temporary id:
workflow.setId(workflow.default_reference) workflow.setId(workflow.default_reference)
return workflow return workflow
...@@ -941,7 +947,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -941,7 +947,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
else: else:
type_value.addTypeWorkflowList(wf_id) type_value.addTypeWorkflowList(wf_id)
if dc_wf_id_list != []: if dc_wf_id_list != []:
self.setChainForPortalTypes((type_value.getId(),), tuple(dc_wf_id_list)) self.setChainForPortalTypes((type_value.id,), tuple(dc_wf_id_list))
InitializeClass(WorkflowTool) InitializeClass(WorkflowTool)
......
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