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

Base.py: fix logic error; fix the interaction workflow type name.

parent 2e15c269
...@@ -531,7 +531,7 @@ def initializePortalTypeDynamicWorkflowMethods(ptype_klass, portal_workflow): ...@@ -531,7 +531,7 @@ def initializePortalTypeDynamicWorkflowMethods(ptype_klass, portal_workflow):
storage = workflow_dict storage = workflow_dict
transitions = wf.getTransitionValueList() transitions = wf.getTransitionValueList()
elif wf_type == "InteractionWorkflowDefinition" or wf_type == "InteractionWorkflow": elif wf_type == "InteractionWorkflowDefinition" or wf_type == "Interaction Workflow":
storage = interaction_workflow_dict storage = interaction_workflow_dict
transitions = wf.getTransitionValueList() transitions = wf.getTransitionValueList()
else: else:
...@@ -3372,7 +3372,7 @@ class Base( CopyContainer, ...@@ -3372,7 +3372,7 @@ class Base( CopyContainer,
workflow_tool = portal.portal_workflow workflow_tool = portal.portal_workflow
worflow_variable_list = [] worflow_variable_list = []
for workflow in workflow_tool.getWorkflowValueListFor(self): for workflow in workflow_tool.getWorkflowValueListFor(self):
if not isinstance(workflow, InteractionWorkflowDefinition) or \ if not isinstance(workflow, InteractionWorkflowDefinition) and \
not isinstance(workflow, InteractionWorkflow): not isinstance(workflow, InteractionWorkflow):
worflow_variable_list.append(self.getProperty(workflow.state_var)) worflow_variable_list.append(self.getProperty(workflow.state_var))
......
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