Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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-Boxiang
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):
...
@@ -995,10 +995,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
activate_kw
,
r
[
-
1
].
getUid
(),
**
kw
)
activate_kw
,
r
[
-
1
].
getUid
(),
**
kw
)
r
=
[
x
.
getPath
()
for
x
in
r
]
r
=
[
x
.
getPath
()
for
x
in
r
]
r
.
sort
()
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
):
for
i
in
xrange
(
0
,
result_count
,
packet_size
):
activate
(
activity
=
'SQLQueue'
,
**
activate_kw
).
callMethodOnObjectList
(
activate
(
r
[
i
:
i
+
packet_size
],
method_id
,
*
method_args
,
**
method_kw
)
r
[
i
:
i
+
packet_size
],
method_id
,
*
method_args
,
**
method_kw
)
security
.
declarePublic
(
'searchAndActivate'
)
security
.
declarePublic
(
'searchAndActivate'
)
def
searchAndActivate
(
self
,
*
args
,
**
kw
):
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