OK, I put new DataGrid to widgets.datagrid module and renamed existing
to FastDataGrid, please check it out (r679).

Some notes.

I also added widgets/templates/datagrid.kid to be used with plain
DataGrid class. It is intentionally simple to facilitate user's
extensions and contains no fast-links (edit/add/delete).

DataGrid introduces new DataGrid.Column type that allows one to define
additional properties (I use it to mark sortable columns in a grid).
Override fields at display time is also supported. FastDataGrid
realized as a subclass that simply extracts fields info from
SQLObjects' metadata and then passes to DataGrid for rendition.

Templates are passed new 'columns' variable which is a list of
abovementioned DataGrid.Column instances. I updated templates to use it
instead of collist/headers but those variables still passed for
backward-compatibility with existing user templates.

The documentation(*) has to be updated yet.
* - http://trac.turbogears.org/turbogears/wiki/DataGridWidget

Reply via email to