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].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.