[Zope] Subfolder problem (acquisition?)
Oleg Broytmann
phd@phd.russ.ru
Wed, 12 Jul 2000 14:23:24 +0000 (GMT)
On Wed, 12 Jul 2000, Robert Wohlfahrt wrote:
> > I can see the root index_html, but I can't see sub folder -
> > AttributeError.
> > I think when I view "sub", it acquire index_html from root, but what is
> > the problem with AttributeError?
>
> I had the same problem and I solved it by using a DTML-Method for
> index_html, not a DTML-Document.
I did many experiments before asking for help. Making index_html Method
helped a bit, but not much.
This works: http://phd.russ.ru/pcgi/TEST2/TEST/sub/ (here index_html is
Method), but anyway view_source crashed:
http://phd.russ.ru/pcgi/TEST2/TEST/index_html/view_source
http://phd.russ.ru/pcgi/TEST2/TEST/sub/index_html/view_source
Here is the view_source (it is DTML Method with Manager proxy role):
<!--#var standard_html_header-->
<pre>
<!--#var "document_src(REQUEST, RESPONSE)" html_quote-->
</pre>
<!--#call "RESPONSE.setHeader('content-type', 'text/html')"-->
<!--#var standard_html_footer-->
And the traceback is:
Traceback (innermost last):
File ./lib/python/ZPublisher/Publish.py, line 214, in publish_module
File ./lib/python/ZPublisher/Publish.py, line 179, in publish
File ./lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: index_html)
File ./lib/python/ZPublisher/Publish.py, line 165, in publish
File ./lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: view_source)
File ./lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: view_source)
File ./lib/python/OFS/DTMLMethod.py, line 145, in __call__
(Object: view_source)
File ./lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: view_source)
File ./lib/python/OFS/DTMLMethod.py, line 141, in __call__
(Object: standard_html_footer)
File ./lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: standard_html_footer)
AttributeError: __call__
Oleg. (All opinions are mine and not of my employer)
----
Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.