Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
e070b1a1
Commit
e070b1a1
authored
May 18, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base.py: fix logic error; fix the interaction workflow type name.
parent
2e15c269
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+2
-2
No files found.
product/ERP5Type/Base.py
View file @
e070b1a1
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment