Commit 24646741 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a dummy argument to catalogObjectList so that activities passing idxs...

Add a dummy argument to catalogObjectList so that activities passing idxs don't fail. This will solve problems in many unit tests failing since parameters are transmited to function when executed on a group of objects.
Add a log if a value was passed to warn that the value is not taken into account, and to make explicit that the parameter is just a dummy.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12709 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19e8d169
......@@ -1265,7 +1265,7 @@ class Catalog( Folder,
self.catalogObjectList([object])
def catalogObjectList(self, object_list, method_id_list=None, disable_cache=0,
check_uid=1):
check_uid=1, idxs=None):
"""
Add objects to the Catalog by calling
all SQL methods and providing needed arguments.
......@@ -1288,6 +1288,9 @@ class Catalog( Folder,
LOG('SQLCatalog', TRACE, 'catalogging %d objects' % len(object_list))
#LOG('catalogObjectList', 0, 'called with %r' % (object_list,))
if idxs not in (None, []):
LOG('ZSLQCatalog.SQLCatalog:catalogObjectList', 0, 'Warning: idxs is ignored in this function and is only provided to be compatible with CMFCatalogAware.reindexObject.')
if not self.isIndexable():
return None
......
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