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
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
alecs_myu
erp5
Commits
962c9cd7
Commit
962c9cd7
authored
Jul 05, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: correct converted interaction attributes type.
parent
b6bc3340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+10
-1
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
962c9cd7
...
@@ -446,6 +446,13 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -446,6 +446,13 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
interaction
.
setExpression
(
tdef
.
guard
.
expr
)
interaction
.
setExpression
(
tdef
.
guard
.
expr
)
interaction
.
setPortalTypeFilter
(
tdef
.
portal_type_filter
)
interaction
.
setPortalTypeFilter
(
tdef
.
portal_type_filter
)
interaction
.
setPortalTypeGroupFilter
(
tdef
.
portal_type_group_filter
)
interaction
.
setPortalTypeGroupFilter
(
tdef
.
portal_type_group_filter
)
# following 2 if are due to workflow migration compatibilities
if
interaction
.
portal_type_filter
==
():
interaction
.
portal_type_filter
=
None
if
interaction
.
portal_type_group_filter
==
():
interaction
.
portal_type_group_filter
=
None
interaction
.
setTemporaryDocumentDisallowed
(
tdef
.
temporary_document_disallowed
)
interaction
.
setTemporaryDocumentDisallowed
(
tdef
.
temporary_document_disallowed
)
#interaction.setTransitionFormId() # this is not defined in DC interaction?
#interaction.setTransitionFormId() # this is not defined in DC interaction?
interaction
.
setTriggerMethodId
(
tdef
.
method_id
)
interaction
.
setTriggerMethodId
(
tdef
.
method_id
)
...
@@ -862,11 +869,13 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -862,11 +869,13 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
def
_finalizeWorkflowConversion
(
self
,
dc_wf
):
def
_finalizeWorkflowConversion
(
self
,
dc_wf
):
trash_tool
=
getattr
(
self
.
getPortalObject
(),
'portal_trash'
,
None
)
trash_tool
=
getattr
(
self
.
getPortalObject
(),
'portal_trash'
,
None
)
if
trash_tool
is
not
None
:
if
trash_tool
is
not
None
:
# move old workflow to trash tool
# 1. move old workflow to trash tool;
# 2. reinitialize workflow accessor.
LOG
(
'WorkflowTool'
,
WARNING
,
"Move old workflow '%s' into a trash bin."
%
dc_wf
.
id
)
LOG
(
'WorkflowTool'
,
WARNING
,
"Move old workflow '%s' into a trash bin."
%
dc_wf
.
id
)
self
.
_delOb
(
dc_wf
.
id
)
self
.
_delOb
(
dc_wf
.
id
)
trashbin
=
UnrestrictedMethod
(
trash_tool
.
newTrashBin
)(
dc_wf
.
id
)
trashbin
=
UnrestrictedMethod
(
trash_tool
.
newTrashBin
)(
dc_wf
.
id
)
trashbin
.
_setOb
(
dc_wf
.
id
,
dc_wf
)
trashbin
.
_setOb
(
dc_wf
.
id
,
dc_wf
)
#self.reset()
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