Hi Jorge,
> Talking about Datagrid, what's its new syntax? All mine stopped working and I
> can't find out where to define these new columns attributes. There's no test
> for DataGrid so I couldn't check it. :-(
There are tests now.
> I used to have:
>
> ================================================================================
>
> grid_fornecedores = datawidgets.DataGrid(
> fields = [
> (lazy_gettext('Fornecedor'), 'nomeAbreviado'),
> (lazy_gettext('Contrato assinado em'), grid_contrato_assinatura),
> (lazy_gettext(u'Contrato valido ate'), grid_contrato_vencimento),
> (lazy_gettext('Ativo?'), 'isAtivo'),
> ],
> )
> ================================================================================
>
> How would I convert it to the new format?
The 'new' syntax is fully compatible with the old one so you don't have
to make any changes unless you're willing to use DataGrid.Column.
> I'm getting the following traceback with this:
> File
> "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/widgets/templates/datagrid.py",
> line 31, in _pull
> NameError: name 'name' is not defined
Looks like 'name' is not injected in the template's namespace. Are you
sure
you're using new widgets codebase? Does the tests in widgets/tests/
runs
without errors on your machine?