[Zope] multi-level acquisition (or the "images" folder problem) - still a problem ;)

wazum-mail (wolfgang) wolfgang@wazum.com
Wed, 27 Jun 2001 19:03:17 +0200


Hiya!

this doesn't work for me ...

only the folder "images" is a CascadingFolder ...

I get this error message:

Traceback (innermost last):
  File D:\Zope2.3.2-Installation\lib\python\ZPublisher\Publish.py, line 223,
in publish_module
  File D:\Zope2.3.2-Installation\lib\python\ZPublisher\Publish.py, line 187,
in publish
  File D:\Zope2.3.2-Installation\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File D:\Zope2.3.2-Installation\lib\python\ZPublisher\Publish.py, line 171,
in publish
  File D:\Zope2.3.2-Installation\lib\python\ZPublisher\mapply.py, line 160,
in mapply
    (Object: index_html)
  File D:\Zope2.3.2-Installation\lib\python\ZPublisher\Publish.py, line 112,
in call_object
    (Object: index_html)
  File D:\Zope2.3.2-Installation\lib\python\OFS\DTMLMethod.py, line 189, in
__call__
    (Object: index_html)
  File D:\Zope2.3.2-Installation\lib\python\DocumentTemplate\DT_String.py,
line 538, in __call__
    (Object: index_html)
  File D:\Zope2.3.2-Installation\lib\python\OFS\DTMLDocument.py, line 182,
in __call__
    (Object: content_html)
  File D:\Zope2.3.2-Installation\lib\python\DocumentTemplate\DT_String.py,
line 538, in __call__
    (Object: content_html)
  File D:\Zope2.3.2-Installation\lib\python\DocumentTemplate\DT_Let.py, line
147, in render
    (Object: current_content="photo_content_html")
  File D:\Zope2.3.2-Installation\lib\python\OFS\DTMLDocument.py, line 182,
in __call__
    (Object: html_content_frame)
  File D:\Zope2.3.2-Installation\lib\python\DocumentTemplate\DT_String.py,
line 538, in __call__
    (Object: html_content_frame)
  File D:\Zope2.3.2-Installation\lib\python\DocumentTemplate\DT_Util.py,
line 334, in eval
    (Object: images.img_empty)
    (Info: images)
  File <string>, line 0, in ?
  File D:\Zope2.3.2-Installation\lib\python\DocumentTemplate\DT_Util.py,
line 127, in careful_getattr
AttributeError: (see above)


simplified:

/
|
+ index_html (includes "content_html") (DTML Method)
|
+-/images (Folder)
| |
| +-img_empty (Image)
|
+-/photography (Folder)
  |
  +-/images (CascadingFolder)
  | |
  | +-some_img (Image)
  |
  +-content_html (includes "photo_content_html") (DTML Document)
  +-html_content_frame (<dtml-var "images.img_empty">) (DTML Document)
  +-photo_content_html (uses "html_content_frame") (DTML Document)

----


any problem solutions or other suggestions?

tia
Wolfgang


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Randall F. Kern
Sent: Wednesday, June 27, 2001 1:47 AM
To: Tim Moore; zope@zope.org
Subject: RE: [Zope] multi-level acquisition (or the "images" folder
problem)


You can also use my CascadingFolder instead of a normal Folder:

http://www.spoke.net/randy/CascadingFolders.tgz

Given Tim's diagram:
> /
> |
> +-/images
> | |
> | +-img1
> |
> +-/index_html
> |
> +-/folder
>   |
>   +-/images
>   | |
>   | +-img2
>   |
>   +-/index_html
>
> ...and edit the tag in /folder/index_html to say
>
> <dtml-var "images.img2">
> <dtml-var "images.img1">

If folder.images is a CascadingFolder, both of these dtml-var statements
will work.

-Randy