RE: [Zope] .tag method of image and class declarations ?
27 Mar
2001
27 Mar
'01
4:47 p.m.
I expected reserved names to be the problem. i use the (style='float etc.. syntax right now , but with large sites , this can quickly get out of hand.. a patch with css_class as a parameter would be very welcome.. thanks :-) -- geir bækholt
the .tag-method of images does not seem to accept 'class' as a parameter..
Hmmm. This is actually a Python issue. Class is a reserved word and therefore cannot be used as a parameter name.
Other arbitrary arguments will work such as:
<dtml-var expr="Image.tag(style='float:right')">
I will submit a patch to get around this to the collector. My thought is to add an option argument css_class that will get around the naming issue. I'm surprised this hasn't come up before!
9141
Age (days ago)
9141
Last active (days ago)
0 comments
1 participants
participants (1)
-
Geir Bækholt