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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5
Commits
a84bd0b6
Commit
a84bd0b6
authored
Jul 13, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assorted simplifications.
parent
28fffd4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+1
-3
No files found.
product/CMFActivity/ActivityTool.py
View file @
a84bd0b6
...
...
@@ -769,7 +769,7 @@ class ActivityTool (Folder, UniqueObject):
nodes
=
self
.
_nodes
if
isinstance
(
nodes
,
tuple
):
new_nodes
=
OIBTree
()
new_nodes
.
update
([(
x
,
ROLE_PROCESSING
)
for
x
in
self
.
_
nodes
])
new_nodes
.
update
([(
x
,
ROLE_PROCESSING
)
for
x
in
nodes
])
self
.
_nodes
=
nodes
=
new_nodes
return
nodes
...
...
@@ -847,7 +847,6 @@ class ActivityTool (Folder, UniqueObject):
def
manage_addToProcessingList
(
self
,
unused_node_list
=
None
,
REQUEST
=
None
):
""" Change one or more idle nodes into processing nodes """
if
unused_node_list
is
not
None
:
node_dict
=
self
.
getNodeDict
()
for
node
in
unused_node_list
:
self
.
updateNode
(
node
,
ROLE_PROCESSING
)
if
REQUEST
is
not
None
:
...
...
@@ -864,7 +863,6 @@ class ActivityTool (Folder, UniqueObject):
def
manage_removeFromProcessingList
(
self
,
processing_node_list
=
None
,
REQUEST
=
None
):
""" Change one or more procesing nodes into idle nodes """
if
processing_node_list
is
not
None
:
node_dict
=
self
.
getNodeDict
()
for
node
in
processing_node_list
:
self
.
updateNode
(
node
,
ROLE_IDLE
)
if
REQUEST
is
not
None
:
...
...
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