[Zope] Can't pass 'class' as keyword to .tag()?

Joel Burton jburton@scw.org
Tue, 27 Mar 2001 16:45:20 -0500 (EST)


To pass extra parameters to an image, so you can create a customized IMG
tag, the syntax is

  <dtml-var "my_pic.tag(alt='My alt', scale=1.5)">

which works fine.

However, the parameter I want to pass is the CSS attribute for class. I
want to create an IMG tag that looks like this:

  <img src="foo" height=xx weight=xx class="logo">

I could just type this in directly to the DTML source, but I'd like to
have the ALT, HEIGHT, and WIDTH tags calculated by Zope from the image
title, and the graphic height and width.

However, I can't use the 'class' keyword in Zope, presumably because
apparently there's some *other* use of the word class in Python ;-).

Is there a way around this?

Thanks!


-- 
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington