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
Hardik Juneja
erp5
Commits
88d231e3
Commit
88d231e3
authored
May 04, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base.py: remove unused comments and attributes; fix transition_list used before assigned problem.
parent
099c5187
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+1
-6
No files found.
product/ERP5Type/Base.py
View file @
88d231e3
...
...
@@ -650,11 +650,6 @@ def initializePortalTypeERP5WorkflowMethod(ptype_klass, portal_workflow):
portal_type_module
=
portal_workflow
.
getPortalObject
().
getDefaultModule
(
portal_type
=
"portal_types"
)
portal_type_value
=
portal_type_module
.
_getOb
(
portal_type
,
None
)
"""
for ERP5Workflow_id in portal_type.erp5workflow_list:
ERP5Workflow = portal_workflow._getOb(ERP5Workflow_id)
"""
#raise NotImplementedError(portal_workflow.getPortalType()) # ERP5Site
for
ERP5Workflow
in
portal_workflow
.
getWorkflowValueListFor
(
portal_type_value
):
ERP5Workflow_id
=
ERP5Workflow
.
getId
()
workflow_type
=
ERP5Workflow
.
__class__
.
__name__
...
...
@@ -702,6 +697,7 @@ def initializePortalTypeERP5WorkflowMethod(ptype_klass, portal_workflow):
elif
workflow_type
==
'InteractionWorkflowDefinition'
:
LOG
(
" 705 Generating methods of DC Interaction Workflow '%s'"
%
ERP5Workflow_id
,
WARNING
,
' in Base.py'
)
transition_id_list
=
ERP5Workflow
.
interactions
transition_list
=
[]
for
interaction_id
in
transition_id_list
:
interaction
=
ERP5Workflow
.
interactions
.
get
(
interaction_id
)
transition_list
.
append
(
interaction
)
...
...
@@ -712,7 +708,6 @@ def initializePortalTypeERP5WorkflowMethod(ptype_klass, portal_workflow):
### zwj: compatibility for Interaction Workflow and Workflow ===============
transition_id_set
=
set
(
transition_id_list
)
transition_set
=
set
(
transition_list
)
### useless
trigger_dict
=
{}
for
transition
in
transition_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