calling an object with a . in the name
I am trying to call an image of the name header.gif in the folder images. Obviously <dtml-var images.header.gif"> is not going to work I tried <dtml-var "images._['header.gif']"> but this gives me an unauthorised error. so how do I call this image? Tom
<dtml-with images> <dtml-var header.gif> </dtml-with> or <dtml-var "_.getattr(images, 'header.gif')"> might do the trick... -steve On Sunday, August 12, 2001, at 08:40 PM, Tom Cameron wrote:
I am trying to call an image of the name header.gif in the folder images.
Obviously <dtml-var images.header.gif"> is not going to work
I tried <dtml-var "images._['header.gif']"> but this gives me an unauthorised error.
so how do I call this image?
Tom
_______________________________________________ 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 )
<dtml-with images> <dtml-var header.gif> </dtml-with>
or
<dtml-var "_.getattr(images, 'header.gif')">
Obviously <dtml-var images.header.gif"> is not going to work
I tried <dtml-var "images._['header.gif']"> but this gives me an unauthorised error.
I think that <dtml-var "images['header.gif']"> might do it as well. Haven't tested it though. --jcc (out of my hat)
participants (3)
-
J. Cameron Cooper -
Steve Spicklemire -
Tom Cameron