[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TopicIndex - TopicIndex.py:1.9.30.2
Andreas Jung
andreas@andreas-jung.com
Thu, 23 Jan 2003 12:33:37 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TopicIndex
In directory cvs.zope.org:/tmp/cvs-serv17553/TopicIndex
Modified Files:
Tag: ajung-oneindex-multipleattributes-branch
TopicIndex.py
Log Message:
merge from HEAD
=== Zope/lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py 1.9.30.1 => 1.9.30.2 ===
--- Zope/lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py:1.9.30.1 Sun Nov 17 06:10:22 2002
+++ Zope/lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py Thu Jan 23 12:33:05 2003
@@ -21,6 +21,7 @@
from Acquisition import Implicit
from BTrees.OOBTree import OOBTree
from BTrees.IIBTree import IISet,intersection,union
+from zLOG import ERROR, LOG
import FilteredSet
_marker = []
@@ -75,8 +76,13 @@
""" hook for (Z)Catalog """
for fs in self.filteredSets.values():
- fs.unindex_object(documentId)
+ try:
+ fs.unindex_object(documentId)
+ except KeyError:
+ LOG(self.__class__.__name__, ERROR,
+ 'Attempt to unindex document'
+ ' with id %s failed' % documentId)
return 1
@@ -88,7 +94,8 @@
return n
- numObjects = "does not apply"
+ def numObjects(self):
+ return "N/A"
def keys(self): pass