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
On Wed, 7 Feb 2001, Diego Rodrigo Neufert wrote:
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)..
try ZMySQLDA-2.0.4 with MySQLdb-0.3.2. -- Andy Dustman PGP: 0xC72F3F1D @ .net http://dustman.net/andy "Normally with carbonara you use eggs, but I used lobster brains instead." -- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle
Sorry, misspeled.... I'm already usign MySQLDA 2.0.4 and MySQLdb 3.0.2 On Wednesday 07 February 2001 06:09 pm, Andy Dustman wrote:
On Wed, 7 Feb 2001, Diego Rodrigo Neufert wrote:
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)..
try ZMySQLDA-2.0.4 with MySQLdb-0.3.2.
-- Diego Rodrigo Neufert Webmaster / Web Developer - Magic Web Design ----------------------------------------------------------- diego@magicwebdesign.com.br www.magicwebdesign.com.br Curitiba - PR - Brasil
participants (2)
-
Andy Dustman -
Diego Rodrigo Neufert