Kevin Dangoor wrote:
On 2/9/06, Simon Belak <[EMAIL PROTECTED]> wrote:
Jorge Godoy wrote:
Simon Belak <[EMAIL PROTECTED]> writes:

what do you think is a better default for non-existing input fields, None or
string of length 0? I'm more inclined toward the latter since for some reason
formencode.validators.String.to_python does not convert None to "", therefore
one might not get what one expects.
I prefer None.  With regards to the conversion, I believe that if you use
"if_empty" you can get the conversion done...  It just isn't done by default.

Yes, but if_empty will raise an error on None.

Perhaps the validator needs to change then? If you're allowed to have
an empty value, the validator should probably change None to "".

Kevin


+1

Will unify TG code.

Reply via email to