[Zope] Using "global" images in /root/subfolder

Stefan Hoffmeister Stefan.Hoffmeister@Econos.de
Wed, 20 Oct 1999 01:48:37 +0200


: On Wed, 20 Oct 1999 08:03:58 +1000 (EST), Stuart 'Zen' Bishop wrote:

>On Tue, 19 Oct 1999, Stefan Hoffmeister wrote:
>
>>           <dtml-with "_.namespace(img='mail_png')">
>>             <dtml-var globalImage>
>>           </dtml-with>

Unfortunately, 

>    <dtml-var "globalImage(img='mail_png')">

does not work, although this works (thanks!):

>    <dtml-var "globalImage(this(),REQUEST,img='mail_png')">

Given that the content of the globalImage DTML Document is just

  <dtml-with "images">
    <dtml-var "_.getitem(img)">
  </dtml-with>

why would "globalImage(img='mail_png')" [which is "nice + friendly"] fail
with an "access denied to images" error?

I am trying to figure out how to reduce redundancy with the help of
acquisition techniques. And in my book "this(),REQUEST," is sort of
redundant, albeit apparently necessary, information that has to be
"created" and "maintained" - and exactly what I do want to get rid of.

Sorry for being a pain :-)