Re: [Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Robert Wohlfahrt

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 ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Oleg Broytmann

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  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Oleg Broytmann

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  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )