You are not logged in Log in Join
You are here: Home » Members » hathawsh » Debugging aid for Zope users » Example output of the DTML debugger

Log in
Name

Password

 
 

An exception occurred in a DTML method or document.

Error type: exceptions.NameError
Error value: getPhysicalRoot

Innermost method: /tests/namespaces
Name not found or not allowed: getPhysicalRoot

Namespace Stack (innermost entry at top)
ID Type Contains name?
(N/A)  mapping with keys: ['document_id', 'document_title']  No 
tests  InstanceDict  Unauthorized: The object "/getPhysicalRoot", which is contained in /tests, is marked as private. 
REQUEST  ZPublisher.HTTPRequest.HTTPRequest  No 

Source of /tests/namespaces with fault:

<dtml-var standard_html_header>
<h2><dtml-var title_or_id> <dtml-var document_title></h2>
<p>
<dtml-var expr="getPhysicalRoot()">
</p>
<dtml-var standard_html_footer>

Powered by Zope

Traceback (innermost last):
  File /home/shane/cvs/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /home/shane/cvs/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/shane/cvs/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: Traversable)
  File /home/shane/cvs/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/shane/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: namespaces)
  File /home/shane/cvs/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: namespaces)
  File /home/shane/Zope2/lib/python/OFS/DTMLMethod.py, line 172, in __call__
    (Object: namespaces)
  File /home/shane/Zope2/lib/python/Products/ZDebug/DTMLLocator.py, line 103, in __call__
    (Object: namespaces)
  File /home/shane/Zope2/lib/python/Products/Translation/DT_String_Patch.py, line 24, in patched_call
    (Object: namespaces)
  File /home/shane/Zope2/lib/python/DocumentTemplate/DT_String.py, line 553, in __call__
    (Object: namespaces)
  File /home/shane/Zope2/lib/python/Products/ZDebug/DTMLDebug.py, line 213, in debug_render_blocks
  File /home/shane/Zope2/lib/python/Products/ZDebug/DTMLDebug.py, line 187, in debugException
  File /home/shane/Zope2/lib/python/Products/ZDebug/DTMLDebug.py, line 211, in debug_render_blocks
  File /home/shane/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
    (Object: getPhysicalRoot())
    (Info: getPhysicalRoot)
  File <string>, line 0, in ?
NameError: (see above)