Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
d9b34bf9
Commit
d9b34bf9
authored
Jun 30, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: fix transition variable conversion Causality and expression text.
parent
056f420e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+3
-3
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
d9b34bf9
...
...
@@ -491,11 +491,11 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
LOG
(
"transition '%s' has var_exprs '%s'"
%
(
origin_tdef
.
__dict__
,
var_exprs
),
WARNING
,
" in WorkflowTool.py 496"
)
for
key
in
var_exprs
:
tr_var
=
transition
.
newContent
(
portal_type
=
'Transition Variable'
,
temp_object
=
temp
)
tr_var
.
setDefaultExpr
(
var_exprs
[
key
])
tr_var
.
setDefaultExpr
(
var_exprs
[
key
]
.
text
)
tr_var_path
=
getattr
(
workflow
,
'variable_'
+
key
).
getPath
()
tr_var_path
=
'
causality/'
+
'/'
.
join
(
t
r_path
.
split
(
'/'
)[
2
:])
tr_var_path
=
'
/'
.
join
(
tr_va
r_path
.
split
(
'/'
)[
2
:])
new_category
.
append
(
tr_var_path
)
tr_var
.
setCausalityList
(
tr_var_path_list
)
tr_var
.
setCausalityList
(
new_category
)
return
workflow
def
getChainDict
(
self
):
...
...
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