Commit 91988caf authored by Julien Muchembled's avatar Julien Muchembled

_getCatalogTool does not exist in CMF 1.5

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39201 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a0497874
...@@ -30,7 +30,7 @@ def reindexObject(self, idxs=[], *args, **kw): ...@@ -30,7 +30,7 @@ def reindexObject(self, idxs=[], *args, **kw):
# Update the modification date. # Update the modification date.
if getattr(aq_base(self), 'notifyModified', None) is not None: if getattr(aq_base(self), 'notifyModified', None) is not None:
self.notifyModified() self.notifyModified()
catalog = self._getCatalogTool() catalog = getattr(self.getPortalObject(), 'portal_catalog', None)
if catalog is not None: if catalog is not None:
catalog.reindexObject(self, idxs=idxs, *args, **kw) catalog.reindexObject(self, idxs=idxs, *args, **kw)
......
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