On Sep 23, 2006, at 10:52 PM, [EMAIL PROTECTED] wrote:
> > Trying to use a form widget in my templates. It works if the > template > is a normal template/controller, but if I make the template accessible > via a widget and pass the form object into the widget the form object > seems to be transformed from TableForm to Element. I think you're trying to pass the form as a parameter to another widget in a parameter declared at "params". Am I right? If so, the problem lies in that any parameter listed at params, if it's callable, it will get called to produce fresh results every time it's accessed. This is how "options" in the SelectionFields work, for example. Widgets are callables as a shortcut for display. If you need to pass a widget to a CompoundWidget you need to declare it at "member_widgets". You can take the AutoCompleWidget's source for an example of this here: http://tinyurl.com/h5gmr HTH, 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 -~----------~----~----~----~------~----~------~--~---

