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
7a6e65cc
Commit
7a6e65cc
authored
Jul 23, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: redefine getWorkflowsFor to getWorkflowValueListFor.
parent
2d13e281
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+6
-4
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
7a6e65cc
...
@@ -201,12 +201,14 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -201,12 +201,14 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
for
workflow_id
in
portal_type
.
getTypeWorkflowList
():
for
workflow_id
in
portal_type
.
getTypeWorkflowList
():
workflow_list
.
append
(
self
.
_getOb
(
workflow_id
))
workflow_list
.
append
(
self
.
_getOb
(
workflow_id
))
for
wf
in
self
.
getWorkflows
For
(
portal_type_id
):
for
wf_id
in
self
.
getChain
For
(
portal_type_id
):
# checking DC Workflow assignment
wf
=
self
.
getWorkflowById
(
wf_id
)
if
wf
is
not
None
:
if
wf
is
not
None
:
workflow_list
.
append
(
wf
)
workflow_list
.
append
(
wf
)
return
workflow_list
return
workflow_list
getWorkflowsFor
=
getWorkflowValueListFor
security
.
declarePrivate
(
'getHistoryOf'
)
security
.
declarePrivate
(
'getHistoryOf'
)
def
getHistoryOf
(
self
,
wf_id
,
ob
):
def
getHistoryOf
(
self
,
wf_id
,
ob
):
""" Get the history of an object for a given workflow.
""" Get the history of an object for a given workflow.
...
...
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