[Zope] wrong value for integer variable?
Michel Pelletier
michel@digicool.com
Wed, 28 Jul 1999 16:27:46 -0400
> -----Original Message-----
> From: Donald Holten [mailto:donner@biophysics.lanl.gov]
> Sent: Wednesday, July 28, 1999 4:14 PM
> To: michel@digicool.com
> Cc: zope@zope.org
> Subject: RE: [Zope] wrong value for integer variable?
>
>
> Something very interesting... I changed the code as
> you said, and, as I
> sort of figured, it didn't work (only because I saw that
> python has no way to
> convert strings to ints).
Sure it does, int(). In DTML, you can access this via the _ namespace,
ie.
<dtml-if "_.int('1') == 1">
Hey, it works!
</dtml-if>
-Michel