As the subject reads. Could anyone explain to me which type works? I did an
update to my application and now my calculation is giving me an error. This
is what I had when it was working:
Field('size1','float'),
Field('size2','float'),
Field('color','reference color'),
Field('price'),
Field('cost',compute=lambda r:
float(r['price'])*float(db.supplier[r.suppliercode].pricecoefficient)),
It was working before. I try searching and I found that 'float' does not
work (or was never supposed to). Changed it to 'double', still does not
work. Left the type blank, and does not work either.
Thanks
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.