[CMF-checkins] CVS: CMF/CMFCore - CMFCatalogAware.py:1.7
Florent Guillaume
fg@nuxeo.com
Fri, 5 Jul 2002 10:14:21 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv20100/CMFCore
Modified Files:
CMFCatalogAware.py
Log Message:
Changed the modification date so that it is updated at reindex time and
does not rely anymore on bobobase_modification_time. This makes
export+import of objects not lose the modification date.
Before exporting objects created with an older CMF version, reindex the
"modified" index in the catalog (you just have to do it once, and only
if you need to export objects).
=== CMF/CMFCore/CMFCatalogAware.py 1.6 => 1.7 ===
security.declareProtected(ModifyPortalContent, 'reindexObject')
def reindexObject(self, idxs=[]):
+ if hasattr(aq_base(self), 'notifyModified'):
+ # Update modification date.
+ self.notifyModified()
catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None:
catalog.reindexObject(self, idxs=idxs)