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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Noah Brackenbury
erp5
Commits
cb868732
Commit
cb868732
authored
Jun 09, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowScript.py: now allow script to generate prefixed id from reference.
parent
652b0787
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
product/ERP5Workflow/Document/WorkflowScript.py
product/ERP5Workflow/Document/WorkflowScript.py
+4
-3
No files found.
product/ERP5Workflow/Document/WorkflowScript.py
View file @
cb868732
...
...
@@ -33,13 +33,13 @@ from Products.ERP5.Document.PythonScript import PythonScript
from
Products.ERP5.Document.Ticket
import
Ticket
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.ConsistencyMessage
import
ConsistencyMessage
from
Products.ERP5Type.XMLObject
import
XMLObject
from
zLOG
import
LOG
,
ERROR
,
DEBUG
,
WARNING
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
class
WorkflowScript
(
PythonScript
):
class
WorkflowScript
(
PythonScript
,
IdAsReferenceMixin
(
"script_"
,
"prefix"
)
):
meta_type
=
'ERP5 Python Script'
portal_type
=
'Workflow Script'
add_permission
=
Permissions
.
AddPortalContent
default_reference
=
''
# Declarative security
security
=
ClassSecurityInfo
()
...
...
@@ -48,6 +48,7 @@ class WorkflowScript(PythonScript):
,
PropertySheet
.
XMLObject
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Reference
,
PropertySheet
.
WorkflowScript
)
...
...
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