[Zope-dev] Image.tag(class='x')

Stephan Richter srichter@cbu.edu
Sun, 30 Jan 2000 12:50:54 -0600


How can I specify the HTML4 'class' attribute on an image?

For example, I want <dtml-var "images.arrow.tag(border='0', class='arrowimg')">
to generate <img src="images/arrow" border="0" class="arrowimg">
but this does not parse because 'class' is a Python keyword!

Can I get around this somehow?  For now I am simply entering the tag manually
instead of using the 'Image.tag' method.

--
Stephan Richter
iXL - Software Designer and Engineer
CBU - Physics, Computer Science and Chemistry Student