Commit 2ba2b556 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Rename reindexObject to reindexCatalogObject

The function reindexObject at CatalogTool has bee renamed to reindexCatalogTool
in the commit 3b760022 . For CMFCatalogAware to be compatibile to use in
CatalogTool, we need to renmae the patched reindexObject here also.
parent c51bc36f
...@@ -18,7 +18,7 @@ from Products.CMFCore.CMFCatalogAware import CMFCatalogAware ...@@ -18,7 +18,7 @@ from Products.CMFCore.CMFCatalogAware import CMFCatalogAware
from Acquisition import aq_base from Acquisition import aq_base
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
def reindexObject(self, idxs=[], *args, **kw): def reindexCatalogObject(self, idxs=[], *args, **kw):
""" """
Reindex the object in the portal catalog. Reindex the object in the portal catalog.
If idxs is present, only those indexes are reindexed. If idxs is present, only those indexes are reindexed.
...@@ -33,6 +33,6 @@ def reindexObject(self, idxs=[], *args, **kw): ...@@ -33,6 +33,6 @@ def reindexObject(self, idxs=[], *args, **kw):
self.notifyModified() self.notifyModified()
catalog = getToolByName(self, 'portal_catalog', None) catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None: if catalog is not None:
catalog.reindexObject(self, idxs=idxs, *args, **kw) catalog.reindexCatalogObject(self, idxs=idxs, *args, **kw)
CMFCatalogAware.reindexObject = reindexObject CMFCatalogAware.reindexObject = reindexCatalogObject
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