Re: [Zope] How to get nice traceback like from old versions?
Dieter Maurer wrote: Jaroslav Lukesh wrote at 2008-2-6 00:08 +0100: Once more, correction of misformatted text for better readability. ... - __traceback_info__: REQUEST Module , line 1, in NameError: name 'kalendar_titulni_pouze_akce_str' is not defined Line 313 where is the error looks: Is somewhere some extra product or patch to show partial code where is error? You are right: DTML is only rarely used nowadays and its support deteriorates. I do not know of a product or patch to improve on this (also I modified our local Zope to at least report which DTMLObject caused a problem). You can improve it by adding "__traceback_info__" or "__traceback_supplement__" definitions at strategic places in the DMTL implementation. If anyone has done this, can I have a copy of your patch - I'm debugging on an old DTML product, and it is impossible to debug without line numbers of exceptions. Otherwise I might have to downgrade zope to 2.5 - thanks for that tip from Jaroslav Lukesh - I had no idea that it used to be better. Thanks, Robert (Jamie) Munro ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
Jaroslav Lukesh wrote at 2008-2-6 00:08 +0100: >Once more, correction of misformatted text for better readability. > ... > - __traceback_info__: REQUEST > Module , line 1, in >NameError: name 'kalendar_titulni_pouze_akce_str' is not defined > >Line 313 where is the error looks: > > >Is somewhere some extra product or patch to show partial code where is >error? You are right: DTML is only rarely used nowadays and its support deteriorates. I do not know of a product or patch to improve on this (also I modified our local Zope to at least report which DTMLObject caused a problem). You can improve it by adding "__traceback_info__" or "__traceback_supplement__" definitions at strategic places in the DMTL implementation. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
Once more, correction of misformatted text for better readability. - Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> ... It is the same as the event.log plus whole request. But with Zope 251 error log points me to exact code with problem: But 294 not: The modern tracebacks are usually far more informative than the old ones. True, they no longer show the source code but the "Module" info can easily be used to locate the corresponding source file. An the "line" info lets you find again the exact source code. Sorry, but I dont see any line of used DTML method to produce this error. In fact, the error is at line 313 (this number is not present at traceback) of DTML method named "titulni": Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module OFS.DTMLMethod, line 144, in __call__ - - URL: http://xx/index_html/manage_main - Physical Path: /www/index_html Module DocumentTemplate.DT_String, line 476, in __call__ Module Products.unitws, line 21, in render Module OFS.DTMLDocument, line 121, in __call__ - - URL: http://xx/index.htm/manage_main - Physical Path: /www/index.htm Module DocumentTemplate.DT_String, line 476, in __call__ Module OFS.DTMLMethod, line 137, in __call__ - - URL: http://xx/standard_html_body/manage_main - Physical Path: /www/standard_html_body Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 214, in render Module OFS.DTMLDocument, line 121, in __call__ - - URL: http://xx/cz/kalendar/titulni/manage_main - Physical Path: /www/cz/kalendar/titulni Module DocumentTemplate.DT_String, line 476, in __call__ Module Products.unitws, line 21, in render Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: REQUEST Module , line 1, in NameError: name 'kalendar_titulni_pouze_akce_str' is not defined Line 313 where is the error looks: Is somewhere some extra product or patch to show partial code where is error? Thanks, JL. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
- Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> ... It is the same as the event.log plus whole request. But with Zope 251 error log points me to exact code with problem: But 294 not: The modern tracebacks are usually far more informative than the old ones. True, they no longer show the source code but the "Module" info can easily be used to locate the corresponding source file. An the "line" info lets you find again the exact source code. Sorry, but I dont see any line of used DTML method to produce this error. In fact, the error is at line 313 (this number is not present at traceback) of DTML method named "titulni": Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module OFS.DTMLMethod, line 144, in __call__ - - URL: http://xx/index_html/manage_main - Physical Path: /www/index_html Module DocumentTemplate.DT_String, line 476, in __call__ Module Products.unitws, line 21, in render Module OFS.DTMLDocument, line 121, in __call__ - - URL: http://xx/index.htm/manage_main - Physical Path: /www/index.htm Module DocumentTemplate.DT_String, line 476, in __call__ Module OFS.DTMLMethod, line 137, in __call__ - - URL: http://xx/standard_html_body/manage_main - Physical Path: /www/standard_html_body Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 214, in render Module OFS.DTMLDocument, line 121, in __call__ - - URL: http://xx/cz/kalendar/titulni/manage_main - Physical Path: /www/cz/kalendar/titulni Module DocumentTemplate.DT_String, line 476, in __call__ Module Products.unitws, line 21, in render Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: REQUEST Module , line 1, in NameError: name 'kalendar_titulni_pouze_akce_str' is not definedLine 313 where is the error looks:kalendar_titulni_pouze_akce_str)">Is somewhere some extra product or patch to show partial code where is error?Thanks, JL. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
Jaroslav Lukesh wrote at 2008-2-5 13:21 +0100: > ... >It is the same as the event.log plus whole request. > >But with Zope 251 error log points me to exact code with problem: > ... >But 294 not: The modern tracebacks are usually far more informative than the old ones. True, they no longer show the source code but the "Module" info can easily be used to locate the corresponding source file. An the "line" info lets you find again the exact source code. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
- Original Message - From: "Jens Vagelpohl" <[EMAIL PROTECTED]> On Feb 5, 2008, at 11:53 , Andreas Jung wrote: --On 5. Februar 2008 11:35:09 +0100 Jaroslav Lukesh <[EMAIL PROTECTED]> wrote: with Zope version 2.5.1 I was get nice error messages from source of page. With 2.9.4 I was get error messages in file log/events.log which is better for security reasons, but these messages are not as exact as from old zope which give me point to failure like that: Why would Zope 2.9 won't give you the same traceback? or a similar one? Use the error_log object in the ZODB. It contains the tracebacks for all those exception types that are not in the (configurable) exclusion list. jens It is the same as the event.log plus whole request. But with Zope 251 error log points me to exact code with problem: (Object: REQUEST.set('Mailinf', Mailinf_VZ + email_delim + Mailinf_MZ + email_delim + Mailinf_GZ + email_delim + Mailinf_Zadavatel + email_delim + Mailinf_Kontakt + email_delim + Mailinf)) (Info: email_delim) File, line 2, in f NameError: (see above) But 294 not: URL: http://xx/sys_list-item_text/manage_main Physical Path:/www/sys_list-item_text Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_In, line 703, in renderwob Module DocumentTemplate.DT_Try, line 140, in render Module DocumentTemplate.DT_Try, line 174, in render_try_except Module OFS.DTMLDocument, line 121, in __call__ URL: http://xx/cz/akcni/manage_main Physical Path:/www/cz/akcni Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_Let, line 76, in render KeyError: 'prehled' ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
On Feb 5, 2008, at 11:53 , Andreas Jung wrote: --On 5. Februar 2008 11:35:09 +0100 Jaroslav Lukesh <[EMAIL PROTECTED]> wrote: Hi all, with Zope version 2.5.1 I was get nice error messages from source of page. With 2.9.4 I was get error messages in file log/events.log which is better for security reasons, but these messages are not as exact as from old zope which give me point to failure like that: Why would Zope 2.9 won't give you the same traceback? or a similar one? Use the error_log object in the ZODB. It contains the tracebacks for all those exception types that are not in the (configurable) exclusion list. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get nice traceback like from old versions?
--On 5. Februar 2008 11:35:09 +0100 Jaroslav Lukesh <[EMAIL PROTECTED]> wrote: Hi all, with Zope version 2.5.1 I was get nice error messages from source of page. With 2.9.4 I was get error messages in file log/events.log which is better for security reasons, but these messages are not as exact as from old zope which give me point to failure like that: Why would Zope 2.9 won't give you the same traceback? or a similar one? -aj pgp4wKhpx1561.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] How to get nice traceback like from old versions?
Hi all, with Zope version 2.5.1 I was get nice error messages from source of page. With 2.9.4 I was get error messages in file log/events.log which is better for security reasons, but these messages are not as exact as from old zope which give me point to failure like that: ... Error Type: NameError Error Value: global name 'Mailinf' is not defined ... Many thanks, JL. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )