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
79faf8b3
Commit
79faf8b3
authored
Nov 09, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: remove category name from the path for overriden getSomeCategoryList
parent
b1d54882
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
product/ERP5Workflow/Document/Interaction.py
product/ERP5Workflow/Document/Interaction.py
+4
-2
product/ERP5Workflow/Document/State.py
product/ERP5Workflow/Document/State.py
+2
-1
product/ERP5Workflow/Document/Transition.py
product/ERP5Workflow/Document/Transition.py
+4
-2
No files found.
product/ERP5Workflow/Document/Interaction.py
View file @
79faf8b3
...
...
@@ -123,7 +123,8 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
"""
returns the list of activate script
"""
return
[
path
for
path
in
self
.
getCategoryList
()
prefix_length
=
len
(
'activate_script/'
)
return
[
path
[
prefix_length
:]
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'activate_script/'
)]
# XXX(PERF): hack to see Category Tool responsability in new workflow slowness
...
...
@@ -133,5 +134,6 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject,
"""
returns the list of before commit script
"""
return
[
path
for
path
in
self
.
getCategoryList
()
prefix_length
=
len
(
'before_commit_script/'
)
return
[
path
[
prefix_length
:]
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'before_commit_script/'
)]
product/ERP5Workflow/Document/State.py
View file @
79faf8b3
...
...
@@ -100,7 +100,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
instead of getting all the transition objects from the destination list
to then use their ids, extract the information from the string
"""
return
[
path
for
path
in
self
.
getCategoryList
()
prefix_length
=
len
(
'destination/'
)
return
[
path
[
prefix_length
:]
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'destination/'
)]
...
...
product/ERP5Workflow/Document/Transition.py
View file @
79faf8b3
...
...
@@ -90,7 +90,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
"""
returns the list of before script
"""
return
[
path
for
path
in
self
.
getCategoryList
()
prefix_length
=
len
(
'before_script/'
)
return
[
path
[
prefix_length
:]
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'before_script/'
)]
# XXX(PERF): hack to see Category Tool responsability in new workflow slowness
...
...
@@ -100,7 +101,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
"""
returns the list of after script
"""
return
[
path
for
path
in
self
.
getCategoryList
()
prefix_length
=
len
(
'after_script/'
)
return
[
path
[
prefix_length
:]
for
path
in
self
.
getCategoryList
()
if
path
.
startswith
(
'after_script/'
)]
...
...
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