[CMF-checkins] CVS: CMF/CMFCore - CMFCatalogAware.py:1.7.4.5
Florent Guillaume
fg@nuxeo.com
Thu, 25 Jul 2002 16:44:57 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv7886
Modified Files:
Tag: CMF-1_3-branch
CMFCatalogAware.py
Log Message:
Merged change from HEAD:
Don't update the object's modification date if specific indexes were
requested.
=== CMF/CMFCore/CMFCatalogAware.py 1.7.4.4 => 1.7.4.5 ===
If idxs is present, only those indexes are reindexed.
The metadata is always updated.
- Also update the modification date of the object.
+ Also update the modification date of the object,
+ unless specific indexes were requested.
"""
- if hasattr(aq_base(self), 'notifyModified'):
- # Update modification date.
- self.notifyModified()
+ if idxs == []:
+ # Update the modification date.
+ if hasattr(aq_base(self), 'notifyModified'):
+ self.notifyModified()
catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None:
catalog.reindexObject(self, idxs=idxs)