I updated the wiki page (attachments) with the last version of my work in progress about create a Widget API more "defined".
this version :
* define abstract and helper classes and functions
* doesn't include "class style" declaration for CompoundWidget or the
constructor parameter but use the callable approach :
MyCoumpound(attr='xxx')(
TextField(name='foo'),
TextField(name='bar'),
)
* use decorator functions (remove the need to manage value and input_values
like in the current style)
* use decorator classes :
* overwrite html attributes
* create a form as a decorator for one widget (or a CompoundWidget) but Form
isn't a CompoundWidget
* ...
If you have some time, feedbacks will be appreciated.
--------------------------------------------------------------
David "Dwayne" Bernard Freelance Developer
signature.asc
Description: OpenPGP digital signature

