Hello,
thank you for your response, but not doit. So for a new test, I removed the
validation of the forms of this field and the error still. When trying to
save just returns this message.
----
 ('empty string for float()',)
----
 So the error can only be in the mapping of the field, right?

Thanks.
--
2010/6/18 Piotr Kęplicz <[email protected]>

> Marcio Brambilla, wtorek 15 czerwca 2010 13:25:
> >       sa.Column('nr_altura', sa.Float, nullable = True),  *#here is the
> > problem because the field in the table is REAL*
> [...]
> >     nr_altura              =
> > formencode.validators.Number(not_empty=False)      *#here is the problem
> > because the field in the table is REAL*
>
> I'd say that your model is correct, however you might want to validate your
> form with:
> Number(if_missing=None, if_empty=None)
> so that empty values are treated as None.
>
> .pk.
>
> --
>  You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to