On Tuesday 18 December 2007 01:25:57 yupu wrote: > Dear Turbogears: > > First of all, is there a way for me to put more than one widget in > each row of TableForm? > > It seems each element of fields of the tableform represent a row, I > tired to make the fields a list of list, it doesn't work. > > If this is not possible which widget I should use to do the job? say I > want to have a list of students in a table and for each student he/she > can add/change his/her phone number AND address.
You can use your own template for that, passing it either as template-keyword-parameter or creating a subclass which defines template as class-variable. In that template, you can then refer to your sub-widgets (the fields) via various functions, see the templates of List/TableForm. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

