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
Jim Dukarm
2003-11-26
---------- Martin Maney: --------------
> All of which looks like a stupidly clever hack to me, and the need to
> decorate the names with underscores to sidestep keywords highlights the
> marginality of the gain.  This is not the one [obvious] way to write a
> dictionary literal!

Occasions where one is tempted to use a stupidly clever hack are
sometimes opportunities to do something insightful and elegant.
Lacking that, though, I could live with Greg's
"...attrs=attrs(size=20, class_='myform')...", where attrs() is a
dict-constructing function. Either "css_class" or "class_" would be OK
with me.

Jim Dukarm
DELTA-X RESEARCH
Victoria BC Canada


reply