[Zope] Aquisition problem
Chris Withers
chrisw@nipltd.com
Tue, 04 Apr 2000 13:00:42 +0100
Hi,
In the root of my site I have a DTML Method index_html
<dtml-var index.html>
and a DTML Document called index.html
I also have a folder, say /folder, that has no index_html or index.html.
The idea was that that viewing /folder/ should result in aquisition and the index_html method
presenting index.html from the root folder.
What actually happens is aquisition causes index_html to be executed which returns the following:
Error Type: AttributeError
Error Value: __call__
Traceback (innermost last):
File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 214, in publish_module
File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 179, in publish
File /usr/local/zope/2-1-4/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 165, in publish
File /usr/local/zope/2-1-4/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: index_html)
File /usr/local/zope/2-1-4/lib/python/OFS/DTMLMethod.py, line 145, in __call__
(Object: index_html)
File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: index_html)
File /usr/local/zope/2-1-4/lib/python/OFS/DTMLDocument.py, line 162, in __call__
(Object: index.html)
File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: index.html)
File /usr/local/zope/2-1-4/lib/python/OFS/DTMLMethod.py, line 141, in __call__
(Object: standard_html_header)
File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: standard_html_header)
File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval
(Object: _['zope.jpeg'].tag(border=0, hspace=10))
(Info: _)
File <string>, line 0, in ?
File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_Util.py, line 161, in careful_getitem
AttributeError: (see above)
I'm assuming that index_html is trying to execute index.html in the context of /folder/ and not
finding index.html, and so complaining.
Why doesn't aquisition do what I'm expecting?
Chris