Ticket #706 (closed enhancement: fixed)
[PATCH] FastDataGrid doesn't support DataGrid.Column field arguments
|Reported by:||bloodearnest@…||Owned by:||anonymous|
In datawidgets.py , FastDataGrid?._prepare_fields() checks fields for backwards compatabiliy (line 56). It converts old style field arguments (single stings) into DataGrid.Columns. Problem is it doesn't check if the field is already an instance of DataGrid.Column, and tries to add a string to it, causing a TypeError? when doing "name + 'ID'" on line 61, since name is a Column.
Trivial patch follows
p.s Is the backwards compatibilty still important? Can it all go?
- Summary changed from FastDataGrid doesn't support DataGrid.Column field arguments [PATCH] to [PATCH] FastDataGrid doesn't support DataGrid.Column field arguments