Commit eabe9bd9 authored by Sebastien Robin's avatar Sebastien Robin

added keywords to catalog_object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2083 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea63b86a
...@@ -361,14 +361,14 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -361,14 +361,14 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
return w return w
security.declarePrivate('reindexObject') security.declarePrivate('reindexObject')
def reindexObject(self, object, idxs=None, sql_catalog_id=None): def reindexObject(self, object, idxs=None, sql_catalog_id=None,**kw):
'''Update catalog after object data has changed. '''Update catalog after object data has changed.
The optional idxs argument is a list of specific indexes The optional idxs argument is a list of specific indexes
to update (all of them by default). to update (all of them by default).
''' '''
if idxs is None: idxs = [] if idxs is None: idxs = []
url = self.__url(object) url = self.__url(object)
self.catalog_object(object, url, idxs=idxs, sql_catalog_id=sql_catalog_id) self.catalog_object(object, url, idxs=idxs, sql_catalog_id=sql_catalog_id,**kw)
security.declarePrivate('unindexObject') security.declarePrivate('unindexObject')
def unindexObject(self, object, path=None, sql_catalog_id=None): def unindexObject(self, object, path=None, sql_catalog_id=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