[Twisted-Python] td() in form

vicky lupien lupien_v_31 at hotmail.com
Wed Oct 15 09:17:07 EDT 2003

Bob Ippolito wrote:

>On Tuesday, Oct 14, 2003, at 16:44 America/New_York, Itamar Shtull-Trauring 
>>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"
>There's no underscore hack for Python's reserved words in lmx?

There is the underscore hack too
l = lmx()
will work as well.

You can prefix an _ to any kwarg, so you can also have td(_import=''), 
td(_if='blah'), etc.

Stephen Thorne

Thx everyone, it's all right now

MSN Search, le moteur de recherche qui pense comme vous !  

More information about the Twisted-Python mailing list