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