There is an entire validation package in turbogears dedicated to handling this subject. It takes care of converting types and other messy things to let you validate code almost automatically and work with correct input as already made python constructs.
There is also a system in place to generate forms from python and hook them up to a validator. I can possibly understand not wanting to use the form system, but the validators are probably too useful to pass up. If you have not considered using either of these yet I highly recommend doing so before you go much further. To answer your question though, I don't really know how you would handle placing validators inside of a kid template. From my understanding they really are meant to only display data, with very minor programming constructs (such as if statements and loops) being present to make displaying data easier. Like I said earlier I think using the validator and formencode systems is the easiest way to accomplish this. There is a tutorial that I think will cover all the basics here: http://trac.turbogears.org/turbogears/wiki/SimpleWidgetForm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

