[Zope] MySQLDA 2.0.3 DateTime Error

Diego Rodrigo Neufert diego@magicwebdesign.com.br
Wed, 7 Feb 2001 18:04:48 -0200


Hi, since I have upgraded to MySQLDA 2.0.3 and MySQL 3.24.32 I'm getting this 
error when the table has a datetime field and I try _.DateTime(date)..

Error Type: TypeError
 /cadastro/suacontaError Value: __div__ nor __rdiv__ defined for these 
operands

and here's the traceback

Traceback (innermost last):
  File /var/local/zope/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /var/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /var/local/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
    (Object: Traversable)
  File /var/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /var/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: suaconta)
  File /var/local/zope/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
    (Object: suaconta)
  File /var/local/zope/lib/python/OFS/DTMLDocument.py, line 189, in __call__
    (Object: suaconta)
  File /var/local/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in 
__call__
    (Object: suaconta)
  File /var/local/zope/lib/python/DocumentTemplate/DT_In.py, line 711, in 
renderwob
    (Object: cadastro.sqlTodasCompras(uid=opt.SESSION['uid']))
  File /var/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in 
eval
    (Object: _.DateTime(data).mm())
    (Info: data)
  File <string>, line 0, in ?
  File /var/local/zope/lib/python/DateTime/DateTime.py, line 736, in __init__
  File /var/local/zope/lib/python/DateTime/DateTime.py, line 356, in _calcSD
TypeError: (see above)




-- 
Diego Rodrigo Neufert
Webmaster / Web Developer - Magic Web Design
-----------------------------------------------------------
diego@magicwebdesign.com.br
www.magicwebdesign.com.br
Curitiba - PR - Brasil