On Jun 14, 2006, at 11:11 AM, Jorge Godoy wrote: > so, if you had local variables inside your function, they won't be > available > out of it. As you can see, decorators wraps functions, so ... > > The easiest thing is to declare a global validator scheme -- of the > widgets > themselves -- in your module and use them. You might try other > things, but > always keep in mind what is happening behind the 'magic'.
Also of note: you can use a callable for form and it will be called, if you need to have widgets dynamically defined for some reason. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

