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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
6f77913b
Commit
6f77913b
authored
Oct 18, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: getSomeCategoryList should return the full paths to the category
parent
ff13da35
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
product/ERP5Workflow/Document/Interaction.py
product/ERP5Workflow/Document/Interaction.py
+4
-4
product/ERP5Workflow/Document/State.py
product/ERP5Workflow/Document/State.py
+2
-1
product/ERP5Workflow/Document/Transition.py
product/ERP5Workflow/Document/Transition.py
+4
-4
No files found.
product/ERP5Workflow/Document/Interaction.py
View file @
6f77913b
...
@@ -123,8 +123,8 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
...
@@ -123,8 +123,8 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
"""
"""
returns the list of activate script
returns the list of activate script
"""
"""
return
[
path
.
split
(
'/'
)[
-
1
]
for
path
in
self
.
getCategoryList
()
return
[
path
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'activate_script'
)]
if
path
.
startswith
(
'activate_script
/
'
)]
# XXX(PERF): hack to see Category Tool responsability in new workflow slowness
# XXX(PERF): hack to see Category Tool responsability in new workflow slowness
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
...
@@ -133,5 +133,5 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
...
@@ -133,5 +133,5 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
"""
"""
returns the list of before commit script
returns the list of before commit script
"""
"""
return
[
path
.
split
(
'/'
)[
-
1
]
for
path
in
self
.
getCategoryList
()
return
[
path
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'before_commit_script'
)]
if
path
.
startswith
(
'before_commit_script/'
)]
\ No newline at end of file
product/ERP5Workflow/Document/State.py
View file @
6f77913b
...
@@ -100,7 +100,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
...
@@ -100,7 +100,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
instead of getting all the transition objects from the destination list
instead of getting all the transition objects from the destination list
to then use their ids, extract the information from the string
to then use their ids, extract the information from the string
"""
"""
return
[
path
.
split
(
'/'
)[
-
1
]
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'destination'
)]
return
[
path
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'destination/'
)]
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
...
...
product/ERP5Workflow/Document/Transition.py
View file @
6f77913b
...
@@ -90,8 +90,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
...
@@ -90,8 +90,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
"""
"""
returns the list of before script
returns the list of before script
"""
"""
return
[
path
.
split
(
'/'
)[
-
1
]
for
path
in
self
.
getCategoryList
()
return
[
path
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'before_script'
)]
if
path
.
startswith
(
'before_script
/
'
)]
# XXX(PERF): hack to see Category Tool responsability in new workflow slowness
# XXX(PERF): hack to see Category Tool responsability in new workflow slowness
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
...
@@ -100,8 +100,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
...
@@ -100,8 +100,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
"""
"""
returns the list of after script
returns the list of after script
"""
"""
return
[
path
.
split
(
'/'
)[
-
1
]
for
path
in
self
.
getCategoryList
()
return
[
path
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'after_script'
)]
if
path
.
startswith
(
'after_script
/
'
)]
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
...
...
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