[Twisted-Python] td() in form
vicky lupien
lupien_v_31 at hotmail.com
Wed Oct 15 07:17:07 MDT 2003
Bob Ippolito wrote:
>On Tuesday, Oct 14, 2003, at 16:44 America/New_York, Itamar Shtull-Trauring
>wrote:
>
>>On Tue, 14 Oct 2003 20:29:10 +0000
>>"vicky lupien" <lupien_v_31 at hotmail.com> wrote:
>>
>>>I' m suppose to write l.td(class='label').text(name) but I can't. Is
>>>there a way to do this?
>>
>>
>>t = l.td()
>>t["class"] = "label"
>>t.text(name)
>
>
>There's no underscore hack for Python's reserved words in lmx?
>
>-bob
There is the underscore hack too
l = lmx()
l.td(_class='label').text(name)
will work as well.
You can prefix an _ to any kwarg, so you can also have td(_import=''),
td(_if='blah'), etc.
Regards,
Stephen Thorne
Thx everyone, it's all right now
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !
http://fr.ca.search.msn.com/
More information about the Twisted-Python
mailing list