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
Kasra Jamshidi
erp5
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
...
@@ -53,7 +53,7 @@ from lxml.etree import Element, SubElement
_MARKER
=
[]
_MARKER
=
[]
class
InteractionWorkflow
(
IdAsReferenceMixin
(
""
,
"prefix"
),
XMLObject
):
class
InteractionWorkflow
(
IdAsReferenceMixin
(
""
,
"prefix"
),
Workflow
):
"""
"""
An ERP5 Interaction Workflow.
An ERP5 Interaction Workflow.
"""
"""
...
@@ -300,7 +300,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -300,7 +300,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
script
.
execute
(
sci
)
script
.
execute
(
sci
)
return
filtered_transition_list
return
filtered_transition_list
security
.
declarePrivate
(
'notifySuccess'
)
def
notifySuccess
(
self
,
ob
,
transition_list
,
result
,
args
=
None
,
kw
=
None
):
def
notifySuccess
(
self
,
ob
,
transition_list
,
result
,
args
=
None
,
kw
=
None
):
"""
"""
Notifies this workflow that an action has taken place.
Notifies this workflow that an action has taken place.
...
@@ -408,7 +407,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -408,7 +407,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
ob
,
self
,
former_status
,
tdef
,
None
,
None
,
kwargs
=
kw
)
ob
,
self
,
former_status
,
tdef
,
None
,
None
,
kwargs
=
kw
)
script
.
execute
(
sci
)
script
.
execute
(
sci
)
security
.
declarePrivate
(
'isActionSupported'
)
def
isActionSupported
(
self
,
document
,
action
,
**
kw
):
def
isActionSupported
(
self
,
document
,
action
,
**
kw
):
'''
'''
Returns a true value if the given action name
Returns a true value if the given action name
...
@@ -432,12 +430,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -432,12 +430,6 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
def
getManagedRoleList
(
self
):
def
getManagedRoleList
(
self
):
return
sorted
(
self
.
getPortalObject
().
getDefaultModule
(
'acl_users'
).
valid_roles
())
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
):
def
showAsXML
(
self
,
root
=
None
):
if
root
is
None
:
if
root
is
None
:
root
=
Element
(
'erp5'
)
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