Diez B. Roggisch schrieb:
> Jorge Godoy schrieb:
>> [EMAIL PROTECTED] writes:
>>
>>> Um...isn't that broken? I thought to_python was supposed to
>>> convert a value from the string representation to the Python
>>> representation. In which case v.to_python('0') should be False, as
>>> should v.to_python("False"). Or at least the latter...
>> It is True for Python so why should the validator change that behavior?
>
> I wouldn't say that. For example to_python('false') shouldn't be True.
> After all, it's validation, here.
I just read the other post of Mark - StringBool is of course the way to go.
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---