[Twisted-Python] Woven, using microdom.lmx, and trying to use style sheets

Donovan Preston dp at twistedmatrix.com
Wed Oct 29 10:59:45 MST 2003


On Oct 29, 2003, at 12:44 PM, Hegedus, Matthew S wrote:

> I tried t.tr['class'] = "mySpecialTableRowStyleClass" but then I got 
> bitched
> at with an "object does not support item assignment". Thanks,

t.tr(_class="mySpecialTableRowStyleClass")

Since class is a python keyword, the special case of having a leading 
underscore is used.

dp





More information about the Twisted-Python mailing list