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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
d8b339cf
Commit
d8b339cf
authored
Sep 08, 2014
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Catalog: Trivial improvement on _searchAndActivate.
parent
dbfc4d98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+3
-3
No files found.
product/ERP5Catalog/CatalogTool.py
View file @
d8b339cf
...
...
@@ -995,10 +995,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
activate_kw
,
r
[
-
1
].
getUid
(),
**
kw
)
r
=
[
x
.
getPath
()
for
x
in
r
]
r
.
sort
()
activate
=
self
.
getPortalObject
().
portal_activities
.
activate
activate
=
self
.
getPortalObject
().
portal_activities
.
activate
(
activity
=
'SQLQueue'
,
**
activate_kw
).
callMethodOnObjectList
for
i
in
xrange
(
0
,
result_count
,
packet_size
):
activate
(
activity
=
'SQLQueue'
,
**
activate_kw
).
callMethodOnObjectList
(
r
[
i
:
i
+
packet_size
],
method_id
,
*
method_args
,
**
method_kw
)
activate
(
r
[
i
:
i
+
packet_size
],
method_id
,
*
method_args
,
**
method_kw
)
security
.
declarePublic
(
'searchAndActivate'
)
def
searchAndActivate
(
self
,
*
args
,
**
kw
):
...
...
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