Jared Kuolt wrote: > Where do you draw the line when supporting attributes? We could > support all given attributes for each element, but I think that lends > itself to being an incredible headache.
Hi Jared, Today I was thinking exactly about this issue. Here is my proposal, for example take the SelectField widget and look at this page: http://www.w3schools.com/tags/tag_select.asp IMHO we should draw this line between Required/Optional attributes and Standard attributes. Standard attributes should be passed (if needed) with the attribute dictionary while for required/optional attributes we should provide direct support. For example (again for the SelectField): my_select_field = SelectField(name="test", multiple=True, options_dict) in my template: my_select_field.insert(size=30, attrs={'class':'test_field'}) For a form: http://www.w3schools.com/tags/tag_form.asp then: my_form = TableForm([widgets], action="save", method="post", accept-charset=..., enctype=...) Hope I've been able to express my idea. :-) Ciao Michele

