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
Xavier Thompson
erp5
Commits
48b44029
Commit
48b44029
authored
Jul 27, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add workflow_list as attribute to Base Type
parent
1e9ba456
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+18
-0
No files found.
product/ERP5Type/ERP5Type.py
View file @
48b44029
...
@@ -227,6 +227,7 @@ class ERP5TypeInformation(XMLObject,
...
@@ -227,6 +227,7 @@ class ERP5TypeInformation(XMLObject,
acquire_local_roles
=
False
acquire_local_roles
=
False
property_sheet_list
=
()
property_sheet_list
=
()
base_category_list
=
()
base_category_list
=
()
workflow_list
=
()
init_script
=
''
init_script
=
''
product
=
'ERP5Type'
product
=
'ERP5Type'
hidden_content_type_list
=
()
hidden_content_type_list
=
()
...
@@ -333,6 +334,23 @@ class ERP5TypeInformation(XMLObject,
...
@@ -333,6 +334,23 @@ class ERP5TypeInformation(XMLObject,
def
getTypeInitScriptId
(
self
):
def
getTypeInitScriptId
(
self
):
return
return
def
getTypeWorkflowList
(
self
):
"""Getter for 'type_workflow' property"""
return
list
(
self
.
workflow_list
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'setTypeWorkflowList'
)
def
setTypeWorkflowList
(
self
,
type_workflow_list
):
"""Setter for 'type_workflow' property"""
# We use 'sorted' below to keep an order in the workflow list. Without
# this line, the actions can have different order depending on the order
# set during the installation or later. This is bad!
# It might not be the ideal solution, if you need to have the workflow
# defined in a specific order. Then, your new implementation should use
# indexes on workflows as in portal types action's priority.
# Note: 'sorted' also convert a tuple or a set to a list
self
.
workflow_list
=
sorted
(
type_workflow_list
)
security
.
declarePrivate
(
'_guessMethodAliases'
)
security
.
declarePrivate
(
'_guessMethodAliases'
)
def
_guessMethodAliases
(
self
):
def
_guessMethodAliases
(
self
):
""" Override this method to disable Method Aliases in ERP5.
""" Override this method to disable Method Aliases in ERP5.
...
...
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