[Zope-dev] [DateIndex bug] catalog related, already post on collector

Paolo Galati paolomail@noze.it
Fri, 6 Dec 2002 12:39:12 +0100


Product DateIndex.py,v 1.7 2002/08/14 22:19:27

Using DateIndex on CMF1.3
An owerflow error is raised from DateIndex product
on line 187 indexing the date fields of products
deriving from DefaultDublinCoreImpl class.
(almost all CMF products)

187: t_val =3D ( ( ( ( yr * 12 + mo ) * 31 + dy ) * 24 + hr ) * 60 + mn )

The t_val value exceed int limit (2147483647) because the
DefaultDublinCoreImpl set, for object that never expire,
the value:
__CEILING_DATE =3D DateTime( 9999, 0 ).


--=20
Paolo Galati - [ n o z e  S.r.l. ]
Via Giuntini, 25/29 - 56023 Navacchio - Cascina (PI)
Tel +39  (0)50 754380 - Fax +39 (0)50 754381
mailto:paolomail@noze.it - http://www.noze.it