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
iv
erp5
Commits
d844e9af
Commit
d844e9af
authored
Dec 05, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: PERF: change getTransitions to an alias, remove unused variable
parent
b40fe901
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
product/ERP5Workflow/Document/State.py
product/ERP5Workflow/Document/State.py
+1
-3
product/ERP5Workflow/Tool/WorkflowTool.py
product/ERP5Workflow/Tool/WorkflowTool.py
+0
-2
No files found.
product/ERP5Workflow/Document/State.py
View file @
d844e9af
...
@@ -127,9 +127,7 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
...
@@ -127,9 +127,7 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
return
[
parent
.
_getOb
(
destination_id
)
for
destination_id
in
return
[
parent
.
_getOb
(
destination_id
)
for
destination_id
in
self
.
getDestinationIdList
()]
self
.
getDestinationIdList
()]
def
getTransitions
(
self
):
getTransitions
=
getDestinationIdList
# return possible transition id list:
return
self
.
getDestinationIdList
()
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'setStatePermissionRolesDict'
)
'setStatePermissionRolesDict'
)
...
...
product/ERP5Workflow/Tool/WorkflowTool.py
View file @
d844e9af
...
@@ -265,14 +265,12 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -265,14 +265,12 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
Workflow Tool to get temporarilly converted DCWorkflow.
Workflow Tool to get temporarilly converted DCWorkflow.
"""
"""
temp_workflow_list
=
[]
temp_workflow_list
=
[]
temp_workflow_id_list
=
[]
for
dc_workflow
in
self
.
getPortalObject
().
portal_workflow
.
objectValues
():
for
dc_workflow
in
self
.
getPortalObject
().
portal_workflow
.
objectValues
():
workflow_type
=
dc_workflow
.
__class__
.
__name__
workflow_type
=
dc_workflow
.
__class__
.
__name__
if
workflow_type
in
[
'Workflow'
,
'Interaction Workflow'
,
'Configuration Workflow'
]:
if
workflow_type
in
[
'Workflow'
,
'Interaction Workflow'
,
'Configuration Workflow'
]:
continue
continue
temp_workflow
=
self
.
dc_workflow_asERP5Object
(
dc_workflow
,
is_temporary
=
temp_obj
)
temp_workflow
=
self
.
dc_workflow_asERP5Object
(
dc_workflow
,
is_temporary
=
temp_obj
)
temp_workflow_list
.
append
(
temp_workflow
)
temp_workflow_list
.
append
(
temp_workflow
)
temp_workflow_id_list
.
append
(
temp_workflow
.
getTitle
())
return
temp_workflow_list
return
temp_workflow_list
def
getScriptPathList
(
self
,
workflow
,
initial_script_name_list
):
def
getScriptPathList
(
self
,
workflow
,
initial_script_name_list
):
...
...
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