Re: [Zope] int and string comparisons

2000-10-12 Thread Chris Withers
"Manuel Amador (Rudd-O)" wrote: dtml-if expr="item == REQUEST.begin_day" selected /dtml-if Try replacing the above with: dtml-if expr="item == _.int(REQUEST.begin_day)" ...and stop posting HTML to a non-HTML list! cheers, Chris ___ Zope

RE: [Zope] int and string comparisons

2000-10-12 Thread Seb Bacon
if you're submitting from a form, you can coerce strings into other data types by giving the form items special names, e.g.: input type=text name=foo:int input type=text name=bar:float Your REQUEST then has variables called foo and bar which are ints and floats, respectively. also, don't post