On 11/12/05, william <[EMAIL PROTECTED]> wrote: > Thus what's the TG's solution (or SQLObject's solution) for those (like > me) who don't want true validators, but simple data converter ?
Validation and conversion is done through the same mechanism, and you really need both. All you get from the web is a bunch of strings. If you want an Int, you can convert it, if you wish, by doing this: foo = int(bar) There is some implicit validation that happens there, because you'll get an exception if bar can't be converted cleanly to an int. Alternatively, you can use the validators=() mechanism in expose (which is more convenient in 0.9). And, the forms/widget mechanism which helps with conversion to the web and back again. Kevin

