Jorge Godoy, el lunes 26 de diciembre a las 21:30 me escribiste:
>
> Leandro Lucarella <[EMAIL PROTECTED]> writes:
>
> > The the patch in #259 is for you!
> > Just put ${form.insert(obj, fields=['name', 'phone'])} in your
> > form_template (if patch is accepted ;)
> >
> > Something similar can be done with DataGrid widget.
>
> Oops! I've posted another patch where it is applied to DataController,
> AJAXDataController and DataGrid -- the same template is used -- because I
> didn't knew about yours. Mine also implements the possibility of having two
> separate list of columns: one for the table presented as a first page and one
> for the edit/add form.
>
> http://trac.turbogears.org/turbogears/ticket/268
>
> I've added a new comment saying that there's also ticket #259 that does
> something like what I do...
I've updated 259 to have more options where to choose the fields to
include in the form with DataController. The only thing is missing is the
separation you talk about, to choose different thigs to create/show in the
form and the list/grid. I thought DataController was using CatWalk's
DataGrid so you can choose the fields to show (and their order) directly
using CatWalk, but it's not. Anyway, I think I can add an extra parameter
to DataController, say list_fields or grid_fields, to select which fields
to show in the list (grid) and their order. I don't know yet if it's a
good idea to use CatWalks DataGrid...
Please, take a look to http://trac.turbogears.org/turbogears/ticket/259 to
see the updates, comments are welcome!
But would like to hear some words from Kevin before I continue hacking
this patch, I don't like to work on it if it's going to /dev/null ;)
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
.------------------------------------------------------------------------,
\ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 /
'--------------------------------------------------------------------'
Si el enemigo se siente abatido, recuérdele que su familia está lejos y
que mientras siga la pelea él se estará perdiendo el crecimiento de sus
hijos. Si está feliz, recuerdele de la existencia de su familia
política, en especial de los cuñados que tienen sexo con sus hermanas.
-- Ricardo Vaporeso. De la desmoralización del enemigo.