[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/DateIndex - DateIndex.py:1.14

Shane Hathaway shane at zope.com
Thu Jan 29 16:22:08 EST 2004


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/DateIndex
In directory cvs.zope.org:/tmp/cvs-serv23183

Modified Files:
	DateIndex.py 
Log Message:
In DateIndex, interpret an empty string as no date value.


=== Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py 1.13 => 1.14 ===
--- Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py:1.13	Tue Nov  4 17:09:03 2003
+++ Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py	Thu Jan 29 16:22:08 2004
@@ -176,7 +176,7 @@
             t_tup = value.toZone('UTC').parts()
         elif type( value ) in (FloatType, IntType):
             t_tup = time.gmtime( value )
-        elif type( value ) is StringType:
+        elif type( value ) is StringType and value:
             t_obj = DateTime( value ).toZone('UTC')
             t_tup = t_obj.parts()
         else:




More information about the Zope-Checkins mailing list