[Zope-Checkins] CVS: Zope2 - ZCatalog.py:1.74.2.8.4.4

Jim Fulton jim@digiciool.com
Mon, 12 Mar 2001 11:28:54 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory korak:/tmp/cvs-serv25940

Modified Files:
      Tag: Catalog-BTrees-Integration
	ZCatalog.py 
Log Message:
Added ZCatalog len that delegates.



--- Updated File ZCatalog.py in package Zope2 --
--- ZCatalog.py	2001/03/02 17:06:37	1.74.2.8.4.3
+++ ZCatalog.py	2001/03/12 16:28:54	1.74.2.8.4.4
@@ -252,6 +252,7 @@
         self._catalog.addColumn('summary')
         self._catalog.addIndex('PrincipiaSearchSource', 'TextIndex')
 
+    def __len__(self): return len(self._catalog)
 
     def getVocabulary(self):
         """ more ack! """