6 Dec
2002
6 Dec
'02
11:39 a.m.
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 = ( ( ( ( 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 = DateTime( 9999, 0 ). -- 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