Subfolder problem (acquisition?)
Hello! I've got a problem. Site: / index_html (DTML Document) logo.gif (Image) standard_html_footer sub (Folder, empty) Footer: <p><dtml-var logo.gif></p> <p><a href="<dtml-var URL0>/view_source">View DTML Source</a></p> </BODY></HTML> 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? http://phd.russ.ru/pcgi/TEST/index_html http://phd.russ.ru/pcgi/TEST/sub/ Export: http://phd.russ.ru/~phd/Software/Zope/TEST.zexp Anyone have an idea? I am totally puzzled. Seems I missed something about acquisition... Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN.
Hi,
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. Hope that helps Robert -- Robert Wohlfahrt (robert.wohlfahrt@sachsen-net.com) Tel: 0179 / 2980074 Fax: 0351 / 2880145
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.
The strangest thing here is: If I <dtml-var logo.gif> in footer: http://phd.russ.ru/pcgi/TEST2/TEST2/index_html, I cannot view source: the same AttributeError: http://phd.russ.ru/pcgi/TEST2/TEST2/index_html/view_source But when I remove logo.gif from footer, all things are working as expected: http://phd.russ.ru/pcgi/TEST2/TEST3/index_html, http://phd.russ.ru/pcgi/TEST2/TEST3/index_html/view_source By some mysterious reason standard_html_footer does not acquire logo.gif :( 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.
participants (2)
-
Oleg Broytmann -
Robert Wohlfahrt