[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/common - UnIndex.py:1.8.14.1
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 13 Mar 2002 09:19:33 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/common
In directory cvs.zope.org:/tmp/cvs-serv30118/lib/python/Products/PluginIndexes/common
Modified Files:
Tag: toby-catalog-delete-property-branch
UnIndex.py
Log Message:
Catalog 291: unindexing a deleted property
=== Zope/lib/python/Products/PluginIndexes/common/UnIndex.py 1.8 => 1.8.14.1 ===
if oldDatum is not _marker:
self.removeForwardIndexEntry(oldDatum, documentId)
+ if datum is _marker:
+ try:
+ del self._unindex[documentId]
+ except:
+ LOG('UnIndex', ERROR,
+ 'Should not happen: oldDatum was there, now its not,'
+ 'for document with id %s' % documentId)
if datum is not _marker:
self.insertForwardIndexEntry(datum, documentId)