API
makeTable(model,
controller=None,
identifier='',
omittedFields=[],
additionalFields=[],
limitFields=None,
widetType=None,
)-->Toscawidgets.DataGrid
Generates a datagrid widget for population of database data
Arguments:
name type default Description
model class sqlalchemy mapped class definition
controller String what controller to send the edit and delete links to.
identifier String or None None optional identifier for the form
omittedFields list of names [] fields that are not present, whatsoever.
if '_action' is in the list, then the edit/delete links will be removed.
additionalFields list of Toscawidgets.fields [] fields that you would like to add to the form that are not in the model
limitFields list of names None limit the fields to the one in the list. A side effect is that the
order of the fields is set by this argument.
(a good way to order your fields if you include all of them)
widgetType ToscaWidget None field for the parent widget to be used