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
Eteri
erp5
Commits
e0da33f8
Commit
e0da33f8
authored
Mar 27, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/WorkflowTool.py: remove useless comments.
parent
8b058bc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+2
-7
No files found.
product/ERP5Type/patches/WorkflowTool.py
View file @
e0da33f8
...
...
@@ -462,13 +462,11 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
document
=
info
.
object
### zwj: following part is for ERP5Workflow actions
if
document
is
not
None
:
document_pt
=
document
.
getTypeInfo
()
if
document_pt
is
not
None
:
workflow_list
=
document_pt
.
getTypeERP5WorkflowList
()
if
(
workflow_list
is
not
None
)
and
(
workflow_list
is
not
[]):
LOG
(
'zwj: ERP5Workflow_list is %s'
%
str
(
workflow_list
),
WARNING
,
' in Workflow tool.'
)
for
wf_id
in
workflow_list
:
did
[
wf_id
]
=
None
wf
=
self
.
getPortalObject
().
getDefaultModule
(
'Workflow'
).
_getOb
(
wf_id
,
None
)
...
...
@@ -477,12 +475,10 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
a
=
wf
.
listObjectActions
(
info
)
if
a
is
not
None
:
actions
.
extend
(
a
)
a
=
wf
.
getWorklistVariableMatchDict
(
info
)
### zwj: replace listGlobalActions(info)
a
=
wf
.
getWorklistVariableMatchDict
(
info
)
if
a
is
not
None
:
worklist_dict
[
wf_id
]
=
a
### ==========================================================================
### zwj: following part is for DCWorkflow actions
for
wf_id
in
chain
:
did
[
wf_id
]
=
None
wf
=
self
.
getWorkflowById
(
wf_id
)
...
...
@@ -494,7 +490,6 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
if
a
is
not
None
:
worklist_dict
[
wf_id
]
=
a
wf_ids
=
self
.
getWorkflowIds
()
for
wf_id
in
wf_ids
:
if
not
did
.
has_key
(
wf_id
):
...
...
@@ -503,7 +498,6 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
a
=
wf
.
getWorklistVariableMatchDict
(
info
)
if
a
is
not
None
:
worklist_dict
[
wf_id
]
=
a
### ==========================================================================
if
worklist_dict
:
portal
=
self
.
getPortalObject
()
...
...
@@ -617,6 +611,7 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
key
=
lambda
x
:
'/'
.
join
((
x
[
'workflow_id'
],
x
[
'worklist_id'
])),
)
return
action_list
user
=
str
(
_getAuthenticatedUser
(
self
))
if
src__
:
actions
=
_getWorklistActionList
()
...
...
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