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
Levin Zimmermann
erp5
Commits
4b9324b7
Commit
4b9324b7
authored
Apr 23, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prefix feature for ERP5Workflow objects.
parent
77035cd9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
8 deletions
+14
-8
product/ERP5Workflow/Document/Interaction.py
product/ERP5Workflow/Document/Interaction.py
+2
-1
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+2
-2
product/ERP5Workflow/Document/State.py
product/ERP5Workflow/Document/State.py
+2
-1
product/ERP5Workflow/Document/Transition.py
product/ERP5Workflow/Document/Transition.py
+2
-1
product/ERP5Workflow/Document/Variable.py
product/ERP5Workflow/Document/Variable.py
+2
-1
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+2
-1
product/ERP5Workflow/Document/Worklist.py
product/ERP5Workflow/Document/Worklist.py
+2
-1
No files found.
product/ERP5Workflow/Document/Interaction.py
View file @
4b9324b7
...
...
@@ -38,8 +38,9 @@ from Products.DCWorkflow.Expression import Expression
from
Products.ERP5Workflow.Document.Transition
import
TRIGGER_WORKFLOW_METHOD
,
TRIGGER_USER_ACTION
from
zLOG
import
LOG
,
INFO
,
ERROR
,
WARNING
from
Products.DCWorkflow.Expression
import
StateChangeInfo
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
class
Interaction
(
XMLObject
):
class
Interaction
(
IdAsReferenceMixin
(
'interaction_'
),
XMLObject
):
"""
An ERP5 Interaction.
"""
...
...
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
4b9324b7
...
...
@@ -45,11 +45,11 @@ from Products.CMFActivity.ActiveObject import ActiveObject
from
Products.ERP5Type.patches.Expression
import
Expression_createExprContext
from
Products.ERP5Type.Globals
import
PersistentMapping
from
zLOG
import
LOG
,
ERROR
,
WARNING
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
_MARKER
=
[]
class
InteractionWorkflow
(
XMLObject
):
class
InteractionWorkflow
(
IdAsReferenceMixin
(
'erp5workflow_'
),
XMLObject
):
"""
An ERP5 Interaction Workflow.
"""
...
...
product/ERP5Workflow/Document/State.py
View file @
4b9324b7
...
...
@@ -34,6 +34,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from
zLOG
import
LOG
,
ERROR
,
DEBUG
,
WARNING
from
Acquisition
import
aq_inner
from
Acquisition
import
aq_parent
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
class
StateError
(
Exception
):
"""
...
...
@@ -41,7 +42,7 @@ class StateError(Exception):
"""
pass
class
State
(
XMLObject
,
XMLMatrix
):
class
State
(
IdAsReferenceMixin
(
'state_'
),
XMLObject
,
XMLMatrix
):
"""
A ERP5 State.
"""
...
...
product/ERP5Workflow/Document/Transition.py
View file @
4b9324b7
...
...
@@ -44,12 +44,13 @@ from Products.ERP5Type.patches.WorkflowTool import WorkflowHistoryList
from
Products.ERP5Type.patches.Expression
import
Expression_createExprContext
from
Products.DCWorkflow.Guard
import
Guard
from
Products.CMFCore.Expression
import
Expression
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
TRIGGER_AUTOMATIC
=
0
TRIGGER_USER_ACTION
=
1
TRIGGER_WORKFLOW_METHOD
=
2
class
Transition
(
XMLObject
):
class
Transition
(
IdAsReferenceMixin
(
'transition_'
),
XMLObject
):
"""
A ERP5 Transition.
"""
...
...
product/ERP5Workflow/Document/Variable.py
View file @
4b9324b7
...
...
@@ -31,8 +31,9 @@ from Products.ERP5Type import Permissions, PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.DCWorkflow.Guard
import
Guard
from
Products.CMFCore.Expression
import
Expression
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
class
Variable
(
XMLObject
):
class
Variable
(
IdAsReferenceMixin
(
'variable_'
),
XMLObject
):
"""
A ERP5 Variable.
"""
...
...
product/ERP5Workflow/Document/Workflow.py
View file @
4b9324b7
...
...
@@ -61,8 +61,9 @@ from Products.DCWorkflow.Expression import StateChangeInfo
from
Products.ERP5Type.patches.WorkflowTool
import
SECURITY_PARAMETER_ID
,
WORKLIST_METADATA_KEY
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5.Tool
import
ERP5WorkflowTool
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
class
Workflow
(
XMLObject
):
class
Workflow
(
IdAsReferenceMixin
(
'erp5workflow_'
),
XMLObject
):
"""
A ERP5 Workflow.
"""
...
...
product/ERP5Workflow/Document/Worklist.py
View file @
4b9324b7
...
...
@@ -40,10 +40,11 @@ from Products.DCWorkflow.Guard import Guard
from
Products.DCWorkflow.permissions
import
ManagePortal
from
Persistence
import
PersistentMapping
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5Type.id_as_reference
import
IdAsReferenceMixin
tales_re
=
re
.
compile
(
r'(\
w+:)?(.*)
')
class Worklist(XMLObject):
class Worklist(
IdAsReferenceMixin('
worklist_
'),
XMLObject):
"""
A ERP5 Worklist.
"""
...
...
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