.tag method of image and class declarations ?
the .tag-method of images does not seem to accept 'class' as a parameter.. this is not so neat when building sites based on css for layout.. I can see that this could be an issue with reserved words in python , but there should really be a workaround, as class is a quite important attribute for frontend-designers.. -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
"Geir Bækholt" wrote:
the .tag-method of images does not seem to accept 'class' as a parameter..
this is not so neat when building sites based on css for layout..
I can see that this could be an issue with reserved words in python , but there should really be a workaround, as class is a quite important attribute for frontend-designers..
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! -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
Casey Duncan wrote:
"Geir Bækholt" wrote:
the .tag-method of images does not seem to accept 'class' as a parameter..
this is not so neat when building sites based on css for layout..
I can see that this could be an issue with reserved words in python , but there should really be a workaround, as class is a quite important attribute for frontend-designers..
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!
Patch submitted: http://classic.zope.org:8080/Collector/2100/view -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
participants (2)
-
Casey Duncan -
Geir B�kholt