Leandro Lucarella, el viernes 23 de diciembre a las 18:54 me escribiste: > I dropped the DataController modification to add ordering because this > solution is more general and I think it covers it. > > Here's the ticket/patch: > http://trac.turbogears.org/turbogears/ticket/259 > > I've added the ordering option to insert/render which is really a way to > select which widgets (fields) to show in the inserted form, please take > a look to the ticket (there's an example showing how to adress the > ordering problem with DataController, the only disadvantage is you have to > redefine the form_template, but I think _everybody_ will do that anyway). > > I've posted another patch/ticket to add more options to DataController > constructor (to fill the missing class attributes): > http://trac.turbogears.org/turbogears/ticket/260 > > I hope you (and the TG users ;) find them useful...
I have updated #259. This are the changes: * Updated to revision [381] (was conflicting with [371] which introduces AjaxDataController) * Merged with the patch in #260 (mostly because this one is harmless and I was too lazy to keep them sepatated, but I can break them again if you like one but not the other) * Added a new feature to control how the form is '''created''' (now you can say DataController(SOClass, form_fields=['field1', 'field2', 'etc']) just like the original mail asked to ;). Please see http://trac.turbogears.org/turbogears/ticket/259 for more details, example and patch. -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ .------------------------------------------------------------------------, \ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 / '--------------------------------------------------------------------' Los pobres buscan su destino. Acá está; ¿no lo ven? -- Emilio Vaporeso. Marzo de 1914

