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
31f2ef9e
Commit
31f2ef9e
authored
Aug 18, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: use inheritance in the WorklistVariable (parent: WorkflowVariable)
parent
46bca9e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
product/ERP5Workflow/Document/WorklistVariable.py
product/ERP5Workflow/Document/WorklistVariable.py
+4
-20
No files found.
product/ERP5Workflow/Document/WorklistVariable.py
View file @
31f2ef9e
...
...
@@ -26,34 +26,18 @@
#
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.CMFCore.Expression
import
Expression
from
Products.DCWorkflow.Guard
import
Guard
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Workflow.Document.WorkflowVariable
import
WorkflowVariable
from
Products.ERP5Type
import
PropertySheet
class
WorklistVariable
(
IdAsReferenceMixin
(
"variable_"
,
"prefix"
),
XMLObject
):
class
WorklistVariable
(
WorkflowVariable
):
"""
A ERP5 Worklist Variable which serves as dynamic variable of Worklist.
This type of object has 3 values:
This type of object has 3 values:
- reference as Title;
- variable_value;
- variable_expression which will override default when it's set.
"""
meta_type
=
'ERP5 Variable'
portal_type
=
'Worklist Variable'
add_permission
=
Permissions
.
AddPortalContent
isPortalContent
=
1
isRADContent
=
1
variable_value
=
''
variable_expression
=
None
# Overrides variable_value if set
default_reference
=
''
# Declarative security
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative properties
property_sheets
=
(
...
...
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