On Jan 30, 2:33 pm, Barry Hart <[EMAIL PROTECTED]> wrote: >(...) > I wrote a function which could generate a widget on the fly, but it didn't > work. In fact, if I took an existing, working widget class and returned it > from a function, it too ceased to work. Is there something about the current > design of TG widgets which prevents creating the classes on the fly?
IIRC, in TG widgets, when errors are redisplayed some code checks for the form instance's identity to know which form the errors should go to in case there are several forms per page (don't ask me why, I don't know). Maybe this is the problem you're seeing. Alberto --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

