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
Hardik Juneja
erp5
Commits
6984cf3a
Commit
6984cf3a
authored
May 18, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
State.py: add an universal reference getter.
parent
8b42ab4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5Workflow/Document/State.py
product/ERP5Workflow/Document/State.py
+6
-0
No files found.
product/ERP5Workflow/Document/State.py
View file @
6984cf3a
...
@@ -178,6 +178,12 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix):
...
@@ -178,6 +178,12 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix):
def
getWorkflow
(
self
):
def
getWorkflow
(
self
):
return
aq_parent
(
aq_inner
(
aq_parent
(
aq_inner
(
self
))))
return
aq_parent
(
aq_inner
(
aq_parent
(
aq_inner
(
self
))))
def
getDestinationReferenceList
(
self
):
ref_list
=
[]
for
tr
in
self
.
getDestinationValueList
():
ref_list
.
append
(
tr
.
getReference
())
return
ref_list
def
setGroups
(
self
,
REQUEST
,
RESPONSE
=
None
):
def
setGroups
(
self
,
REQUEST
,
RESPONSE
=
None
):
"""Set the group to role mappings in REQUEST for this State.
"""Set the group to role mappings in REQUEST for this State.
"""
"""
...
...
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