toscawidgets/tw2.sqla — pull request #7 by LeResKP (2012-07-17 22:49:48+00:00)
Title: Feature/tws config

Add a class to be able to customize the fields to display in form:
The new properties:
* viewable: to know if a field is viewable (ViewPolicy)
* editable: to know if a field is editable (EditPolicy)
* widget: define the widget to use
* validator: define the validator to use
* tabname: define in which tab should be display the field (EditPolicy only)
* groupname: define in which group (fieldset) should be display the field (EditPolicy only)

Next steps:
* Since I use dict to group the Tabs and Fieldset, the order of the display of the widget can be 'random'. I will fix this!
* Add a class on the tabs if at least one of the children has an error (usefull to find where the error was)
* Add some documentation to exlain how to use this new features
* Also It could be nice to have a demo page with some cases of usage.