Take a look at http://trac.turbogears.org/turbogears/browser/trunk/turbogears/ widgets/tests/test_nested_widgets.py
There's an example of a form with two nested fieldsets. Regarding passing specific parameters to inner widgets @ display that will be with the options parameter, which, for nested widgets, takes the shape of a nested dictionary. Alberto On Mar 2, 2006, at 3:23 PM, Jorge Godoy wrote: > > Alberto Valverde <[EMAIL PROTECTED]> writes: > >> Alberto, >> >> Sure you can! Take a look at how fieldset is implemented... however, >> one word of warning... Michele and I are slightly refactoring this >> stuff (#613 and maybe #626) so I'd rather wait a few days . Shouldn't >> break anything as the interface is going to be the same but maybe >> some new utility functions will get in. It'l be for the better I >> hope :) >> >> Regards, >> Alberto > > I can't wait anymore... I've done it work with plain HTML. Now > I'm just > trying to use it inside a form, but I'm not being able to find how > to pass > specific data to one of the widgets inside the form. The idea > would be > something like (I dunno if it is valid code): > > my_form = TableForm( > [ > TextField(name = 'abc'), > CompoundWidget(name = 'compound', > [ > TextField(name = 'def'), > TextField(name = 'ghi'), > ], > ), > ], > ) > > Then I would like to pass something to 'def' and 'ghi' in a > variable named > 'something' at display-time. It would be like a "value" and > "value2" :-) > > I dunno if I explained it right, but I hope I did... :-) > > -- > Jorge Godoy <[EMAIL PROTECTED]> > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

