[Zope-Checkins] CVS: Zope2 - UnIndex.py:1.1.2.7

andreas@serenade.digicool.com andreas@serenade.digicool.com
Mon, 21 May 2001 10:54:38 -0400


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/common
In directory serenade:/tmp/cvs-serv13486/common

Modified Files:
      Tag: ajung-dropin-registry
	UnIndex.py 
Log Message:
added numObjects()



--- Updated File UnIndex.py in package Zope2 --
--- UnIndex.py	2001/05/18 15:41:54	1.1.2.6
+++ UnIndex.py	2001/05/21 14:54:37	1.1.2.7
@@ -314,6 +314,11 @@
 
         return returnStatus
 
+    def numObjects(self):
+        """ return number of indexed objects """
+        return len(self._index)
+
+
     def unindex_object(self, documentId):
         """ Unindex the object with integer id 'documentId' and don't
         raise an exception if we fail """