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
Jason E. Sibre
2003-11-26
> 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.

I like it...

I've just been kinda watching lately, not having a strong opinion on these
matters, but after the last episode of 'underscores here, fancy dict
constructors here, mangled spellings there...'

I have to agree: It just isn't THAT hard to type {'class':'myStyleClass',
'id':'spanone', 'xml:lang':'english' }, and it neatly sidesteps all the
issues of handling reserved words, and all the inelegancies that handling
tends to bring up.

P.S. I just threw in that last 'xml:lang' ... I don't use it, and don't know
if it has any special restrictions about placement in a tag, or anything
like that.

Jason


reply