[Zope] Help

Robert Rottermann robert at redcor.ch
Wed Dec 15 12:22:42 EST 2004


I do not know wehther this is of any help:
The ZMySQLdb returns int as longint that must be converted.
it is something like 0L which must be converted to 0 by help of int()

Robert
Loomis, Todd, CTR, DMSO wrote:
> I’m in the process of moving from a linux box to a win32 box and have 
> everything up and running nicely. However I’m getting the following 
> error when access a table that has a mysql timestamp, any suggestions:
> 
>  
> 
> <!--
> 
> Traceback (innermost last):
> 
>   File E:\DMSO-www\lib\python\Products\Hotfix_2002-04-15\__init__.py, 
> line 51, in publish_module
> 
>   File E:\DMSO-www\lib\python\ZPublisher\Publish.py, line 187, in publish
> 
>   File E:\DMSO-www\lib\python\Zope\__init__.py, line 226, in 
> zpublisher_exception_hook
> 
>   File E:\DMSO-www\lib\python\ZPublisher\Publish.py, line 171, in publish
> 
>   File E:\DMSO-www\lib\python\ZPublisher\mapply.py, line 160, in mapply
> 
>     (Object: index)
> 
>   File E:\DMSO-www\lib\python\ZPublisher\Publish.py, line 112, in 
> call_object
> 
>     (Object: index)
> 
>   File E:\DMSO-www\lib\python\OFS\DTMLMethod.py, line 195, in __call__
> 
>     (Object: index)
> 
>   File E:\DMSO-www\lib\python\DocumentTemplate\DT_String.py, line 546, 
> in __call__
> 
>     (Object: index)
> 
>   File E:\DMSO-www\lib\python\DocumentTemplate\DT_In.py, line 691, in 
> renderwob
> 
>     (Object: get_nominations)
> 
>   File E:\DMSO-www\lib\python\Shared\DC\ZRDB\DA.py, line 493, in __call__
> 
>     (Object: get_nominations)
> 
>   File E:\DMSO-www\lib\python\Products\ZMySQLDA\db.py, line 293, in query
> 
>   File E:\DMSO-www\lib\python\MySQLdb\times.py, line 105, in 
> mysql_timestamp_converter
> 
> ValueError: invalid literal for int(): 0-
> 
>  
> 
> -->
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list