[CMF-checkins] CVS: CMF/CMFCore - CMFCatalogAware.py:1.13

Florent Guillaume fg@nuxeo.com
Thu, 25 Jul 2002 16:42:34 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv7566

Modified Files:
	CMFCatalogAware.py 
Log Message:
Don't update to object's modification date if specific indexes were
requested.


=== CMF/CMFCore/CMFCatalogAware.py 1.12 => 1.13 ===
             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)