28 Jul
1999
28 Jul
'99
8:27 p.m.
-----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