[Zope] Basic object access question

Chris McDonough chrism@zope.com
27 May 2002 21:57:30 -0400


Hi Kent,

<dtml-with "ImageFolder">
  <dtml-with "sub">
    <dtml-with "sub2">
      <dtml-var Image>
    </dtml-with>
  </dtml-with>
</dtml-with>

There are other ways.  Please read
http://www.zope.org/Documentation/ZopeBook/AdvDTML.stx for more
information.

HTH,

- C


On Mon, 2002-05-27 at 08:02, kent@springfed.com wrote:
> Howdy,
> 
> I'm sure this is explained any number of 
> places, but I haven't found it.
> 
> Given this layout, with Project and ImageFolder
> in my installation root;
> 
> Project
>  sub
>   sub2
> ImageFolder
>  sub
>   sub2 - Image
> 
> a DTML Document in Project/sub/sub2 contains;
> <dtml-var /ImageFolder/sub/sub2/Image>
> 
> I get a KeyError
> 
> What am I missing here, where is the explanation?
> 
> Thanks,
> Kent
> 
> 
> 
> _______________________________________________
> 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 )