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
Sebastien Robin
erp5
Commits
6ba45403
Commit
6ba45403
authored
Oct 20, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Oct 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: get type id without using qccessor.
parent
ea274355
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+7
-1
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
6ba45403
...
@@ -106,6 +106,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -106,6 +106,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
# Declarative Security
# Declarative Security
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
_product_interfaces
=
OriginalWorkflowTool
.
_product_interfaces
_chains_by_type
=
OriginalWorkflowTool
.
_chains_by_type
_default_chain
=
OriginalWorkflowTool
.
_default_chain
_default_cataloging
=
OriginalWorkflowTool
.
_default_cataloging
manage_options
=
OriginalWorkflowTool
.
manage_options
manage_options
=
OriginalWorkflowTool
.
manage_options
manage_overview
=
OriginalWorkflowTool
.
manage_overview
manage_overview
=
OriginalWorkflowTool
.
manage_overview
_manage_selectWorkflows
=
OriginalWorkflowTool
.
_manage_selectWorkflows
_manage_selectWorkflows
=
OriginalWorkflowTool
.
_manage_selectWorkflows
...
@@ -555,7 +559,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -555,7 +559,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
tr_var_path
=
'/'
.
join
(
tr_var_path
.
split
(
'/'
)[
2
:])
tr_var_path
=
'/'
.
join
(
tr_var_path
.
split
(
'/'
)[
2
:])
new_category
.
append
(
tr_var_path
)
new_category
.
append
(
tr_var_path
)
tr_var
.
setCausalityList
(
new_category
)
tr_var
.
setCausalityList
(
new_category
)
# move dc workflow to trash bin
self
.
_finalizeWorkflowConversion
(
dc_workflow
)
self
.
_finalizeWorkflowConversion
(
dc_workflow
)
# override temporary id:
workflow
.
setId
(
workflow
.
default_reference
)
workflow
.
setId
(
workflow
.
default_reference
)
return
workflow
return
workflow
...
@@ -941,7 +947,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -941,7 +947,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
else
:
else
:
type_value
.
addTypeWorkflowList
(
wf_id
)
type_value
.
addTypeWorkflowList
(
wf_id
)
if
dc_wf_id_list
!=
[]:
if
dc_wf_id_list
!=
[]:
self
.
setChainForPortalTypes
((
type_value
.
getId
()
,),
tuple
(
dc_wf_id_list
))
self
.
setChainForPortalTypes
((
type_value
.
id
,),
tuple
(
dc_wf_id_list
))
InitializeClass
(
WorkflowTool
)
InitializeClass
(
WorkflowTool
)
...
...
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