Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
d24e76bc
Commit
d24e76bc
authored
Jul 27, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InteractionWorkflow.py: add Workflow as parent class of InteractionWorkflow.
parent
7d3a4380
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+1
-9
No files found.
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
d24e76bc
...
...
@@ -53,7 +53,7 @@ from lxml.etree import Element, SubElement
_MARKER
=
[]
class
InteractionWorkflow
(
IdAsReferenceMixin
(
""
,
"prefix"
),
XMLObject
):
class
InteractionWorkflow
(
IdAsReferenceMixin
(
""
,
"prefix"
),
Workflow
):
"""
An ERP5 Interaction Workflow.
"""
...
...
@@ -300,7 +300,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
script
.
execute
(
sci
)
return
filtered_transition_list
security
.
declarePrivate
(
'notifySuccess'
)
def
notifySuccess
(
self
,
ob
,
transition_list
,
result
,
args
=
None
,
kw
=
None
):
"""
Notifies this workflow that an action has taken place.
...
...
@@ -408,7 +407,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
ob
,
self
,
former_status
,
tdef
,
None
,
None
,
kwargs
=
kw
)
script
.
execute
(
sci
)
security
.
declarePrivate
(
'isActionSupported'
)
def
isActionSupported
(
self
,
document
,
action
,
**
kw
):
'''
Returns a true value if the given action name
...
...
@@ -432,12 +430,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
def
getManagedRoleList
(
self
):
return
sorted
(
self
.
getPortalObject
().
getDefaultModule
(
'acl_users'
).
valid_roles
())
def
notifyException
(
self
,
ob
,
action
,
exc
):
'''
Notifies this workflow that an action failed.
'''
pass
def
showAsXML
(
self
,
root
=
None
):
if
root
is
None
:
root
=
Element
(
'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