[Zope] Can't pass 'class' as keyword to .tag()?
Tino Wildenhain
tino@wildenhain.de
Tue, 27 Mar 2001 17:14:33 +0200
Hi Joel,
good morning ;)
This special item was discussed only a few messages above ;)
Someone also mentioned an onging patch ;)
(The thread was called: " .tag method of image and class declarations
?")
Regards
Tino
Joel Burton wrote:
>
> 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
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )