durusmail: quixote-users: Patch: add html_attrs keyword arg to widget classes
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
Patch: add html_attrs keyword arg to widget classes
Skip Montanaro
2003-12-01
    Oscar> On Sunday 30 November 2003 19:50, Skip Montanaro wrote:
    >> How about you allow both keyword args and an explicit attribute dict?
    >> That way, for the oddball stuff which clashes with Python syntax you
    >> go the extra step and use the dictionary, but for normal usage,
    >> keyword args do just fine:
    >>
    >> htmltag('input', type='text', size=20, maxlength=40)
    >> htmltag('textarea', rows=30, cols=80)
    >> htmltag('body', bgcolor='#fff', attrs={'class': 'mainpage'})
    >>

    Oscar> I miss something or may be i haven't understood nothing.

    Oscar> Have you tested all this stuff with the last html.py patch
    Oscar> proposed?  I think all of these examples are already supported.

I haven't tested any of this.  I was responding to Greg's note where it
suggested that a bunch of keyword args which were eliminated were actually
rather convenient.

    Oscar> Maybe you are talking about widget instead of htmltag.

Yes, probably.

Skip

reply