[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? 

>>> bool('0')
True
>>> bool('')
False
>>> bool('False')
True
>>> 



-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to