[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/common - UnIndex.py:1.9

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 13 Mar 2002 09:23:37 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/common
In directory cvs.zope.org:/tmp/cvs-serv31368/lib/python/Products/PluginIndexes/common

Modified Files:
	UnIndex.py 
Log Message:
merged toby-catalog-delete-property-branch: Collector 291: deleting and indexed property

=== Zope/lib/python/Products/PluginIndexes/common/UnIndex.py 1.8 => 1.9 ===
             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)