[Zope-dev] Traceback

jpenny@universal-fasteners.com jpenny@universal-fasteners.com
Tue, 18 Jul 2000 15:33:14 -0400


How hard would it be to add more of the called URL to the traceback?

Background:
I have been developing relatively baroque SQL sites for internal use 
and find that when I am making changes to facilitate re-use higher up
in the hierarchy, it can be relatively difficult to find out what 
failed.  For example, I get this traceback:

Traceback (innermost last):
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/OFS/DTMLDocument.py, line 170, in __call__
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
    (Object: product_number)
    (Info: product_number)
  File <string>, line 0, in ?
NameError: (see above)

Great, I know that I have not put product_number in as a cookie or a hidden
value, and it could not be found by acquisition.  It failed in rendering
index_html.  But there are 5 index_html's it could have failed in.

How hard would it be to change the error message to say:

Traceback (innermost last):
  Exception raised while constructing 
  http:....
.
.
.

Jim