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
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
Amer
erp5
Commits
fead09e1
Commit
fead09e1
authored
Jun 10, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: fix empty script name issue in the conversion codes.
parent
48ccfc36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+11
-11
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
fead09e1
...
...
@@ -327,14 +327,14 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
# check after script is a Transion or a Script:
if
tdef
.
after_script_name
in
dc_workflow
.
transitions
.
objectIds
():
transition
.
setAfterScriptId
(
'transition_'
+
tdef
.
after_script_name
)
el
se
:
el
if
tdef
.
after_script_name
in
dc_workflow
.
scripts
.
objectIds
()
:
transition
.
setAfterScriptId
(
'script_'
+
tdef
.
after_script_name
)
if
tdef
.
script_name
is
not
None
:
# check after script is a Transion or a Script:
if
tdef
.
script_name
in
dc_workflow
.
transitions
.
objectIds
():
transition
.
set
After
ScriptId
(
'transition_'
+
tdef
.
script_name
)
el
se
:
transition
.
set
After
ScriptId
(
'script_'
+
tdef
.
script_name
)
transition
.
set
Before
ScriptId
(
'transition_'
+
tdef
.
script_name
)
el
if
tdef
.
script_name
in
dc_workflow
.
scripts
.
objectIds
()
:
transition
.
set
Before
ScriptId
(
'script_'
+
tdef
.
script_name
)
transition
.
guard
=
tdef
.
guard
# create states (portal_type = State)
for
sid
in
dc_workflow
.
states
:
...
...
@@ -411,22 +411,22 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
if
tdef
.
activate_script_name
is
not
None
:
if
tdef
.
activate_script_name
in
dc_workflow
.
interactions
.
objectIds
():
interaction
.
setActivateScriptName
(
'interaction_'
+
tdef
.
activate_script_name
)
el
se
:
el
if
tdef
.
activate_script_name
in
dc_workflow
.
scripts
.
objectIds
()
:
interaction
.
setActivateScriptName
(
'script_'
+
tdef
.
activate_script_name
)
if
tdef
.
after_script_name
is
not
None
:
if
tdef
.
after_script_name
in
tdef
.
interactions
.
objectIds
():
if
tdef
.
after_script_name
in
dc_workflow
.
interactions
.
objectIds
():
interaction
.
setAfterScriptName
(
'interaction_'
+
tdef
.
after_script_name
)
el
se
:
el
if
tdef
.
after_script_name
in
dc_workflow
.
scripts
.
objectIds
()
:
interaction
.
setAfterScriptName
(
'script_'
+
tdef
.
after_script_name
)
if
tdef
.
before_commit_script_name
is
not
None
:
if
tdef
.
before_commit_script_name
in
tdef
.
interactions
.
objectIds
():
if
tdef
.
before_commit_script_name
in
dc_workflow
.
interactions
.
objectIds
():
interaction
.
setBeforeCommitScriptName
(
'interaction_'
+
tdef
.
before_commit_script_name
)
el
se
:
el
if
tdef
.
before_commit_script_name
in
dc_workflow
.
scripts
.
objectIds
()
:
interaction
.
setBeforeCommitScriptName
(
'script_'
+
tdef
.
before_commit_script_name
)
if
tdef
.
script_name
is
not
None
:
if
tdef
.
script_name
in
tdef
.
interactions
.
objectIds
():
if
tdef
.
script_name
in
dc_workflow
.
interactions
.
objectIds
():
interaction
.
setBeforeScriptName
(
'interaction_'
+
tdef
.
script_name
)
el
se
:
el
if
tdef
.
script_name
in
dc_workflow
.
scripts
.
objectIds
()
:
interaction
.
setBeforeScriptName
(
'script_'
+
tdef
.
script_name
)
interaction
.
guard
=
tdef
.
guard
interaction
.
setPortalTypeFilter
(
tdef
.
portal_type_filter
)
...
...
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