Update of /cvs-repository/Products/PluginIndexes/DateIndex In directory cvs.zope.org:/tmp/cvs-serv20110
Modified Files: Tag: Zope-2_7-branch DateIndex.py Log Message: If the new value is _marker (basically, if we index with a value of None), we should also remove the object from our _unindex === Products/PluginIndexes/DateIndex/DateIndex.py 1.12.2.4 => 1.12.2.5 === --- Products/PluginIndexes/DateIndex/DateIndex.py:1.12.2.4 Fri Mar 18 10:31:01 2005 +++ Products/PluginIndexes/DateIndex/DateIndex.py Wed Aug 24 11:39:36 2005 @@ -126,6 +126,16 @@ if ConvertedDate != oldConvertedDate: if oldConvertedDate is not _marker: self.removeForwardIndexEntry(oldConvertedDate, documentId) + if ConvertedDate is _marker: + try: + del self._unindex[documentId] + except ConflictError: + raise + except: + LOG('UnIndex', ERROR, + ("Should not happen: ConvertedDate was there," + " now it's not, for document with id %s" % + documentId)) if ConvertedDate is not _marker: self.insertForwardIndexEntry( ConvertedDate, documentId ) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins