Commit d7489efc authored by Jérome Perrin's avatar Jérome Perrin

replace a hasattr by getattr



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