[Zope-Checkins] CVS: Zope2 - Catalog.py:1.74

shane@digicool.com shane@digicool.com
Fri, 1 Jun 2001 11:05:30 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory korak.digicool.com:/tmp/cvs-serv25732

Modified Files:
	Catalog.py 
Log Message:
Cosmetic change so I can get my lost log message in. :-)

In the change just before this one, I
corrected the optimization of not applying unused indexes (although this
optimization does not seem right since index.id is not necessarily
equivalent to the key to look for in the request).  DateTime objects
don't have and don't need a __len__ attribute.




--- Updated File Catalog.py in package Zope2 --
--- Catalog.py	2001/06/01 15:01:37	1.73
+++ Catalog.py	2001/06/01 15:05:30	1.74
@@ -531,7 +531,7 @@
 
         rs   = None             # resultset
         data = self.data
-        
+
         if used is None: used={}
         for i in self.indexes.keys():
 
@@ -550,8 +550,6 @@
                     r, u = r
                     for name in u: used[name]=1
                     w, rs = weightedIntersection(rs, r)
-
-
                         
         #assert rs==None or hasattr(rs, 'values') or hasattr(rs, 'keys')
         if rs is None: