[Zope-Checkins]
CVS: Zope/lib/python/Products/PluginIndexes/DateIndex
- DateIndex.py:1.12.2.2
Shane Hathaway
shane at zope.com
Thu Jan 29 16:21:14 EST 2004
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/DateIndex
In directory cvs.zope.org:/tmp/cvs-serv23001
Modified Files:
Tag: Zope-2_7-branch
DateIndex.py
Log Message:
In DateIndex, interpret an empty string as no date value.
=== Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py 1.12.2.1 => 1.12.2.2 ===
--- Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py:1.12.2.1 Tue Nov 4 17:10:49 2003
+++ Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py Thu Jan 29 16:21:13 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