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):
return w
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.
The optional idxs argument is a list of specific indexes
to update (all of them by default).
'''
if idxs is None: idxs = []
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')
def unindexObject(self, object, path=None, sql_catalog_id=None):
......@@ -393,4 +393,4 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
url = self.__url(object)
self.catalog_object(object, url, idxs=idxs, is_object_moved=1)
InitializeClass(CatalogTool)
\ No newline at end of file
InitializeClass(CatalogTool)
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