[Zope] acquisition / dtml-with problem
Paul Winkler
slinkp23@yahoo.com
Mon, 16 Apr 2001 04:47:57 -0400
OK, I have a dtml document called "Foo".
This works fine when I view the document.
Now let's say this document is in the folder called FooFolder in
which there is a folder called SubFolder.
Now I can call Foo_dtml as either FooFolder/Foo_dtml,
or as FooFolder/SubFolder/Foo_dtml through the magic of
acquisition.
No problem so far, all is good.
Here's the problem. If I put this code in Foo_dtml:
<dtml-with images>
<dtml-var izea-sundial.jpeg>
</dtml-with>
... it works fine when called as FooFolder/Foo_dtml
but NOT when called as FooFolder/SubFolder/Foo_dtml .
WHen I do the latter, I get this:
Traceback (innermost last):
(SNIP)
File
/home/pw/Downloads/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py,
/home/pw/Downloads/Zope-2.2.2-src/lib/python/DocumentTemplate/DT_With.py,
line 132, in render
(Object: images)
AttributeError: (see above)
Why? It seems like dtml-with is unable to find my images
folder??
--
................... paul winkler ....................
custom calendars & printing: http://www.calendargalaxy.com
A member of ARMS: http://www.reacharms.com
home page: http://www.slinkp.com