[CMF-checkins] CVS: CMF/CMFCore - CatalogTool.py:1.31
Florent Guillaume
fg@nuxeo.com
Fri, 12 Jul 2002 19:46:45 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv15309
Modified Files:
CatalogTool.py
Log Message:
Modified CatalogTool.reindexObject to filter out invalid indexes.
=== CMF/CMFCore/CatalogTool.py 1.30 => 1.31 ===
## Zope 2.3 ZCatalog is supposed to work better if
## you don't uncatalog_object() when reindexing.
# self.uncatalog_object(url)
+ if idxs != []:
+ # Filter out invalid indexes.
+ valid_indexes = self._catalog.indexes.keys()
+ idxs = [i for i in idxs if i in valid_indexes]
self.catalog_object(object, url, idxs=idxs)
InitializeClass(CatalogTool)