Commit db41566b authored by Ivan Tyagov's avatar Ivan Tyagov

Move comment to appropriate place.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae90c84d
...@@ -129,7 +129,7 @@ else: ...@@ -129,7 +129,7 @@ else:
UID_BUFFER_SIZE = 300 UID_BUFFER_SIZE = 300
OBJECT_LIST_SIZE = 300 OBJECT_LIST_SIZE = 300 # XXX 300 is arbitrary value of catalog object list
MAX_PATH_LEN = 255 MAX_PATH_LEN = 255
RESERVED_KEY_LIST = ('where_expression', 'sort-on', 'sort_on', 'sort-order', 'sort_order', 'limit', RESERVED_KEY_LIST = ('where_expression', 'sort-on', 'sort_on', 'sort-order', 'sort_order', 'limit',
'format', 'search_mode', 'operator', 'selection_domain', 'selection_report', 'format', 'search_mode', 'operator', 'selection_domain', 'selection_report',
...@@ -1257,7 +1257,6 @@ class Catalog(Folder, ...@@ -1257,7 +1257,6 @@ class Catalog(Folder,
the object list, because calling _catalogObjectList with too many the object list, because calling _catalogObjectList with too many
objects at a time bloats the process's memory consumption, due to objects at a time bloats the process's memory consumption, due to
caching.""" caching."""
# XXX 300 is arbitrary.
for i in xrange(0, len(object_list), OBJECT_LIST_SIZE): for i in xrange(0, len(object_list), OBJECT_LIST_SIZE):
self._catalogObjectList(object_list[i:i + OBJECT_LIST_SIZE], self._catalogObjectList(object_list[i:i + OBJECT_LIST_SIZE],
method_id_list=method_id_list, method_id_list=method_id_list,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment