[ZCM] [ZC] 710/ 1 Request "DateIndex OverflowError: integer multiplication"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Fri, 06 Dec 2002 06:32:03 -0500


Issue #710 Update (Request) "DateIndex OverflowError: integer multiplication"
 Status Pending, Catalog/bug medium
To followup, visit:
  http://collector.zope.org/Zope/710

==============================================================
= Request - Entry #1 by Anonymous User on Dec 6, 2002 6:32 am

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

 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 ).

==============================================================