"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
> I wouldn't say that. For example to_python('false') shouldn't be True.
> After all, it's validation, here.
It isn't validating the contents of the string. For that you have
another validator. From the docs:
turbogears.validators.Bool = class Bool(formencode.api.FancyValidator)
| Always Valid, returns True or False based on the value and the
| existance of the value.
|
| If you want to convert strings like ``'true'`` to booleans, then
| use ``StringBoolean``.
So, if you use the correct validator you'll get what you're wanting.
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---