[Checkins] SVN: zc.catalog/trunk/src/zc/catalog/ sigh. An example of why you should have tests even for little things.

Gary Poster gary at zope.com
Fri Jul 14 16:51:27 EDT 2006


Log message for revision 69130:
  sigh.  An example of why you should have tests even for little things.
  

Changed:
  U   zc.catalog/trunk/src/zc/catalog/catalogindex.py
  U   zc.catalog/trunk/src/zc/catalog/index.py

-=-
Modified: zc.catalog/trunk/src/zc/catalog/catalogindex.py
===================================================================
--- zc.catalog/trunk/src/zc/catalog/catalogindex.py	2006-07-14 19:54:29 UTC (rev 69129)
+++ zc.catalog/trunk/src/zc/catalog/catalogindex.py	2006-07-14 20:51:26 UTC (rev 69130)
@@ -62,6 +62,6 @@
     resolution=2): # hour; good for per-day searches
     ix = NormalizationWrapper(
         field_name, interface, field_callable, zc.catalog.index.SetIndex(),
-        zc.catalog.index.DateTimeNormalizer(resolution), False)
+        zc.catalog.index.DateTimeNormalizer(resolution), True)
     zope.interface.directlyProvides(ix, zc.catalog.interfaces.ISetIndex)
     return ix

Modified: zc.catalog/trunk/src/zc/catalog/index.py
===================================================================
--- zc.catalog/trunk/src/zc/catalog/index.py	2006-07-14 19:54:29 UTC (rev 69129)
+++ zc.catalog/trunk/src/zc/catalog/index.py	2006-07-14 20:51:26 UTC (rev 69130)
@@ -442,5 +442,5 @@
     zc.catalog.interfaces.ISetIndex)
 def DateTimeSetIndex(resolution=2): # hour; good for per-day searches
     ix = NormalizationWrapper(SetIndex(), DateTimeNormalizer(resolution), True)
-    interface.directlyProvides(ix, zc.catalog.interfaces.IValueIndex)    
+    interface.directlyProvides(ix, zc.catalog.interfaces.ISetIndex)    
     return ix



More information about the Checkins mailing list