[Zope] Getting an L on integers eg. 53L
Philip Aylesworth
zopelist@regalint.com
Mon, 8 Mar 1999 13:30:31 -0500
Here is a strange one -- I am getting an L on the end of integer numbers
from MySQL. (They are INT not BIGINT!) It didn't happen in 1.9, and it
doesn't happen with methods that I created in 1.9 and moved to 1.10.2 (I
think).
In <!--#var--> I have to use fmt='%d' to get rid of it.
I also had a problem when I tried to use one in a redirect:
<!--#call "RESPONSE.redirect('file_html?num='+_.str(num))"-->
produces:
http://server/dir/file_html?num=53L
which causes an error.
I got around that by adding an int function:
<!--#call "RESPONSE.redirect('file_html?num='+_.str(_.int(num)))"-->
Has anybody else experienced this problem? Having to add all this extra
code is driving me crazy!
Phil A
Phil A
------------------------------------------
Philip Aylesworth zopelist@regalint.com
Regal International