[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.4.4.4
Andreas Jung
andreas@digicool.com
Thu, 11 Apr 2002 15:27:40 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
In directory cvs.zope.org:/tmp/cvs-serv30433/lib/python/Products/PluginIndexes/PathIndex
Modified Files:
Tag: Zope-2_4-branch
PathIndex.py
Log Message:
PathIndex returned wrong number of indexed objects
=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.4.4.3 => 1.4.4.4 ===
def numObjects(self):
""" return the number of indexed objects"""
-
- x = IISet()
- for k,v in self._index.items():
- for level,ids in v.items():
- x = union(x,ids)
-
- return len(x)
+ return len(self._unindex)
def keys(self):