[Checkins] SVN: zc.catalog/trunk/src/zc/catalog/index.py correct comment (thanks, Christian Theune)

Gary Poster gary at zope.com
Wed Dec 20 10:39:40 EST 2006


Log message for revision 71621:
  correct comment (thanks, Christian Theune)
  

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

-=-
Modified: zc.catalog/trunk/src/zc/catalog/index.py
===================================================================
--- zc.catalog/trunk/src/zc/catalog/index.py	2006-12-20 15:34:26 UTC (rev 71620)
+++ zc.catalog/trunk/src/zc/catalog/index.py	2006-12-20 15:39:39 UTC (rev 71621)
@@ -437,7 +437,8 @@
 @interface.implementer(
     zope.interface.implementedBy(NormalizationWrapper),
     zc.catalog.interfaces.IValueIndex)
-def DateTimeValueIndex(resolution=2): # hour; good for per-day searches
+def DateTimeValueIndex(resolution=2): # 2 == minute; note that hour is good
+    # for timezone-aware per-day searches
     ix = NormalizationWrapper(ValueIndex(), DateTimeNormalizer(resolution))
     interface.directlyProvides(ix, zc.catalog.interfaces.IValueIndex)
     return ix
@@ -445,7 +446,8 @@
 @interface.implementer(
     zope.interface.implementedBy(NormalizationWrapper),
     zc.catalog.interfaces.ISetIndex)
-def DateTimeSetIndex(resolution=2): # hour; good for per-day searches
+def DateTimeSetIndex(resolution=2): # 2 == minute; note that hour is good
+    # for timezone-aware per-day searches
     ix = NormalizationWrapper(SetIndex(), DateTimeNormalizer(resolution), True)
     interface.directlyProvides(ix, zc.catalog.interfaces.ISetIndex)    
     return ix



More information about the Checkins mailing list