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
Lukas Niegsch
erp5
Commits
099c5187
Commit
099c5187
authored
May 04, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DC Workflow Tool Objects: add getReference which actually returns their id.
parent
46379fbe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
product/ERP5/Interaction.py
product/ERP5/Interaction.py
+3
-0
product/ERP5/InteractionWorkflow.py
product/ERP5/InteractionWorkflow.py
+3
-0
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+15
-1
No files found.
product/ERP5/Interaction.py
View file @
099c5187
...
...
@@ -256,6 +256,9 @@ class InteractionDefinition (SimpleItem):
return
self
.
manage_variables
(
REQUEST
,
'Variables changed.'
)
def
getReference
(
self
):
return
self
.
id
Globals
.
InitializeClass
(
InteractionDefinition
)
...
...
product/ERP5/InteractionWorkflow.py
View file @
099c5187
...
...
@@ -347,6 +347,9 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
return
DCWorkflowDefinition
.
_checkTransitionGuard
(
self
,
t
,
ob
,
**
kw
)
def
getReference
(
self
):
return
self
.
id
Globals
.
InitializeClass
(
InteractionWorkflowDefinition
)
addWorkflowFactory
(
InteractionWorkflowDefinition
,
id
=
'interaction_workflow'
,
...
...
product/ERP5Type/patches/WorkflowTool.py
View file @
099c5187
...
...
@@ -23,8 +23,14 @@ from AccessControl import Unauthorized
from
Products.CMFCore.WorkflowTool
import
WorkflowTool
from
Products.CMFCore.WorkflowCore
import
ObjectMoved
,
ObjectDeleted
from
Products.CMFCore.WorkflowCore
import
WorkflowException
from
Products.DCWorkflow.DCWorkflow
import
DCWorkflowDefinition
from
Products.DCWorkflow.Transitions
import
TRIGGER_WORKFLOW_METHOD
from
Products.DCWorkflow.DCWorkflow
import
DCWorkflowDefinition
from
Products.DCWorkflow.Transitions
import
TransitionDefinition
from
Products.DCWorkflow.States
import
StateDefinition
from
Products.DCWorkflow.Variables
import
VariableDefinition
from
Products.DCWorkflow.Worklists
import
WorklistDefinition
from
Products.CMFCore.utils
import
Message
as
_
from
Products.CMFCore.utils
import
getToolByName
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
,
AutoQuery
,
ComplexQuery
,
NegatedQuery
...
...
@@ -90,6 +96,14 @@ DCWorkflowDefinition.notifyWorkflowMethod = DCWorkflowDefinition_notifyWorkflowM
DCWorkflowDefinition
.
notifyBefore
=
DCWorkflowDefinition_notifyBefore
DCWorkflowDefinition
.
notifySuccess
=
DCWorkflowDefinition_notifySuccess
def
method_getReference
(
self
):
return
self
.
id
DCWorkflowDefinition
.
getReference
=
method_getReference
TransitionDefinition
.
getReference
=
method_getReference
StateDefinition
.
getReference
=
method_getReference
VariableDefinition
.
getReference
=
method_getReference
WorklistDefinition
.
getReference
=
method_getReference
WORKLIST_METADATA_KEY
=
'metadata'
SECURITY_PARAMETER_ID
=
'local_roles'
COUNT_COLUMN_TITLE
=
'count'
...
...
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