On Fri, 3 Mar 2000 12:43:57 -0000, "Phil Harris" <phil.harris@zope.co.uk> said:
PH> Petr, Generally the traceback is put into comments within the PH> html for the error page, so viewing the source of the error PH> document shows you the traceback from Zope. Phil, of course I know this. But my question/suggestion was little bit different. Try this: Eg. in a DTML Document ('pokus') put <dtml-var a>, and of course the variable 'a' is not in namespace to raise the error. When the Publisher tries to render Doc, the error is raised. See traceback at the end. And I would like to see in the traceback (it woul be the best) also this: Error occured in the line number 'nn' of object 'pokus' (DTML Document template) - or something similar. The information concerning the line number is the most important for me. And this I can't see in attached traceback. Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: pokus) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: pokus) File /usr/lib/zope/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: pokus) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: pokus) KeyError: (see above) PH> HTH PH> Phil phil.harris@zope.co.uk ----- Original Message ----- From: PH> "Petr Knapek" <knapek@knapek.pvt.net> To: "zopedev" PH> <zope-dev@zope.org> Sent: Friday, March 03, 2000 12:28 PM PH> Subject: [Zope-dev] Errors in Zope >> Hi all, I would like to know if there is any possibility in Zope >> to see also the line number of zope rendered object when any >> error occurs? This would help me (and not only me) during >> debugging. I think this information could be at the beginning of >> traceback. If this already exists can you tell me how to show >> this and if not I would like to know your meaning of this. >> >> Petr -- Petr Knápek PVT.NET, e-mail: petr.knapek@pvt.net, >> tel:+420-5-41 558 394 PVT a.s. - pvt.net, Veveří 102, 659 10 >> Brno, Czech Republic >> >> _______________________________________________ Zope-Dev maillist >> - Zope-Dev@zope.org >> http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts >> or HTML encoding! ** (Related lists - >> http://lists.zope.org/mailman/listinfo/zope-announce >> http://lists.zope.org/mailman/listinfo/zope ) >> Petr -- Petr Knápek PVT.NET, e-mail: petr.knapek@pvt.net, tel:+420-5-41 558 394 PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic
participants (1)
-
Petr Knapek