Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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_fork
Commits
707f81a4
Commit
707f81a4
authored
Mar 30, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type.py: add ERP5 interaction workflow compatibility at intitialization step.
parent
8b09bfe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+13
-0
No files found.
product/ERP5Type/ERP5Type.py
View file @
707f81a4
...
...
@@ -242,6 +242,7 @@ class ERP5TypeInformation(XMLObject,
property_sheet_list
=
()
base_category_list
=
()
erp5workflow_list
=
()
interaction_workflow_list
=
()
init_script
=
''
product
=
'ERP5Type'
hidden_content_type_list
=
()
...
...
@@ -424,6 +425,12 @@ class ERP5TypeInformation(XMLObject,
ERP5Workflow
=
workflow_module
.
_getOb
(
ERP5Workflow_id
)
ERP5Workflow
.
initializeDocument
(
ob
)
for
Workflow_id
in
self
.
getTypeInteractionWorkflowList
():
workflow_module
=
portal
.
getDefaultModule
(
portal_type
=
"Workflow"
)
if
workflow_module
is
not
None
:
ERP5Workflow
=
workflow_module
.
_getOb
(
Workflow_id
)
ERP5Workflow
.
initializeDocument
(
ob
)
if
not
temp_object
:
init_script
=
self
.
getTypeInitScriptId
()
if
init_script
:
...
...
@@ -461,6 +468,12 @@ class ERP5TypeInformation(XMLObject,
"""Getter for 'type_workflow' property"""
return
list
(
self
.
erp5workflow_list
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getInteractionWorkflowList'
)
def
getTypeInteractionWorkflowList
(
self
):
"""Getter for 'type_workflow' property"""
return
list
(
self
.
interaction_workflow_list
)
def
getTypePropertySheetValueList
(
self
):
type_property_sheet_list
=
self
.
getTypePropertySheetList
()
if
not
type_property_sheet_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