[Zope-dev] Float Conversion: Got it!
Jason Spisak
webmaster@mtear.com
Fri, 07 May 1999 17:18:16 -0400
Pavlos:
I just got it. Not all of the records have a value in that field.
Converters.py won't take '' (nothing) to start with. If I account for
that in my external method it should work. I love Python "if salary" so
easy, simple, elegant ;-)
Thanks for your brain power!
Jason
Pavlos Christoforou wrote:
>
> On Fri, 7 May 1999, Jason Spisak wrote:
>
> > Zope-o-matic fans:
> > floating point property. :-( Anyone have any ideas?
>
> A question: What happens if you do not convert salary?
>
> > REQUEST.set('salary',float(salary))
>
> REQUEST.set('salary',salary)
>
> Pavlos
--
Jason Spisak
webmaster@mtear.com