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

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/, line 222, 
in publish_module
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/, line 187, 
in publish
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/Zope/, line 221, in 
    (Object: ElementWithAttributes)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/, line 171, 
in publish
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/, line 160, 
in mapply
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/, line 112, 
in call_object
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/OFS/, line 170, in 
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/DocumentTemplate/, 
line 502, in __call__
    (Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/DocumentTemplate/, 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 


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to