durusmail: quixote-users: Generalizing form/widget API a bit
Generalizing form/widget API a bit
2003-11-25
2003-11-25
2003-11-25
2003-11-25
2003-11-25
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-29
2003-11-30
2003-11-26
2003-11-26
2003-11-26
Patch: add html_attrs keyword arg to widget classes
2003-11-30
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Patch: add html_attrs keyword arg to widget classes
2003-12-01
2003-12-02
2003-12-03
2003-12-02
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Generalizing form/widget API a bit
Greg Ward
2003-11-29
On 26 November 2003, Michael Watkins said:
> How about we just require that attrs passed be a dict and be done with
> it. Leave the creation of the dict the responsibility of the application
> developer.

That is the conclusion which I have come to as well.

(However, I'd like to see a convenience function attrs() that turns
keyword args into a dict, taking care of the 'class_' -> 'class'
conversion.  Someone already posted a perfectly good implementation, so
I won't add my own.)

(Right now, I do not think that this convenience function should handle
'xml:lang', mainly because I have never used that attribute myself.  ;-)

        Greg
--
Greg Ward                          http://www.gerg.ca/
The world is coming to an end.  Please log off.

reply