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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
47a6f5e3
Commit
47a6f5e3
authored
Oct 10, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: rename variables
parent
b6724253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+6
-7
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
47a6f5e3
...
@@ -329,15 +329,15 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -329,15 +329,15 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
moved_exc
=
None
moved_exc
=
None
while
1
:
while
1
:
try
:
try
:
s
def
=
self
.
_executeTransition
(
document
,
tdef
,
kwargs
)
s
tate
=
self
.
_executeTransition
(
document
,
tdef
,
kwargs
)
except
ObjectMoved
,
moved_exc
:
except
ObjectMoved
,
moved_exc
:
document
=
moved_exc
.
getNewObject
()
document
=
moved_exc
.
getNewObject
()
s
def
=
self
.
_getWorkflowStateOf
(
document
,
id_only
=
0
)
s
tate
=
self
.
_getWorkflowStateOf
(
document
,
id_only
=
0
)
# Re-raise after all transitions.
# Re-raise after all transitions.
if
s
def
is
None
:
if
s
tate
is
None
:
break
break
t
def
=
self
.
_findAutomaticTransition
(
document
,
sdef
)
t
ransition
=
self
.
_findAutomaticTransition
(
document
,
state
)
if
t
def
is
None
:
if
t
ransition
is
None
:
# No more automatic transitions.
# No more automatic transitions.
break
break
# Else continue.
# Else continue.
...
@@ -689,7 +689,6 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -689,7 +689,6 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
object
.
REQUEST
.
other
.
update
(
form_kw
)
object
.
REQUEST
.
other
.
update
(
form_kw
)
kwargs
=
form_kw
kwargs
=
form_kw
# XXX(WORKFLOW) check this for loop
for
vdef
in
self
.
objectValues
(
portal_type
=
'Workflow Variable'
):
for
vdef
in
self
.
objectValues
(
portal_type
=
'Workflow Variable'
):
id
=
vdef
.
getId
()
id
=
vdef
.
getId
()
variable_reference
=
vdef
.
getReference
()
variable_reference
=
vdef
.
getReference
()
...
@@ -709,7 +708,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -709,7 +708,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
expr
=
variable_expression
expr
=
variable_expression
else
:
else
:
value
=
vdef
.
getVariableValue
(
object
=
object
)
value
=
vdef
.
getVariableValue
(
object
=
object
)
if
expr
is
not
None
and
expr
!=
''
:
if
expr
not
in
(
None
,
''
)
:
# Evaluate an expression.
# Evaluate an expression.
if
econtext
is
None
:
if
econtext
is
None
:
# Lazily create the expression context.
# Lazily create the expression context.
...
...
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