[Zope-Checkins] CVS: Zope2 - FieldIndex.py:1.1.2.3
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Mon, 21 May 2001 10:55:07 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/FieldIndex
In directory serenade:/tmp/cvs-serv13486/FieldIndex
Modified Files:
Tag: ajung-dropin-registry
FieldIndex.py
Log Message:
added numObjects()
--- Updated File FieldIndex.py in package Zope2 --
--- FieldIndex.py 2001/05/16 16:10:21 1.1.2.2
+++ FieldIndex.py 2001/05/21 14:54:36 1.1.2.3
@@ -200,6 +200,11 @@
self.__len__=BTrees.Length.Length(len(_index))
+
+ def numObjects(self):
+ """ return number of indexed objects """
+ return len(self._index)
+
def __nonzero__(self):
return not not self._unindex