Hi all, You might have noticed that when you get errors in your DTML/ZPT etc that the tracebacks in the HTML page are no longer there. You have two choices (as I see it); 1) edit lib/python/ZPublisher/HTTPResponse.py, look for APPEND_TRACEBACKS and set it to 1 Or 2) add the following to the end of your standard_error_message .... <dtml-var standard_html_footer> <!-- <dtml-var error_tb> --> Your choice - I opted for the second. Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
Try adding the following to your standard_error_message: <div tal:condition="options/error_log_url | nothing"> <hr noshade /> <a href="error_log_url" tal:attributes="href options/error_log_url"> Show Error Log Entry </a> </div> or <dtml-if error_log_url> <hr noshade /> <a href="&dtml-error_log_url;">Show Error Log Entry</a> </dtml-if> This made it into the CMF, but not stock Zope. I'll try and get this in for 2.6.1. -Casey On Tue, 22 Oct 2002 14:54:51 +0100 Tony McDonald <tony.mcdonald@ncl.ac.uk> wrote:
Hi all, You might have noticed that when you get errors in your DTML/ZPT etc that the tracebacks in the HTML page are no longer there.
You have two choices (as I see it); 1) edit lib/python/ZPublisher/HTTPResponse.py, look for APPEND_TRACEBACKS and set it to 1 Or 2) add the following to the end of your standard_error_message
.... <dtml-var standard_html_footer> <!-- <dtml-var error_tb> -->
Your choice - I opted for the second.
Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Casey Duncan wrote:
Try adding the following to your standard_error_message:
<div tal:condition="options/error_log_url | nothing"> <hr noshade /> <a href="error_log_url" tal:attributes="href options/error_log_url"> Show Error Log Entry </a> </div>
but you need zope root Manager role to get access to that ressource .... it is not accessible by users that are Manager in a sub folder, like a virtualhost or CMF site ... cyrille
or
<dtml-if error_log_url> <hr noshade /> <a href="&dtml-error_log_url;">Show Error Log Entry</a> </dtml-if>
This made it into the CMF, but not stock Zope. I'll try and get this in for 2.6.1.
-Casey
On Tue, 22 Oct 2002 14:54:51 +0100 Tony McDonald <tony.mcdonald@ncl.ac.uk> wrote:
Hi all, You might have noticed that when you get errors in your DTML/ZPT etc that the tracebacks in the HTML page are no longer there.
You have two choices (as I see it); 1) edit lib/python/ZPublisher/HTTPResponse.py, look for APPEND_TRACEBACKS and set it to 1 Or 2) add the following to the end of your standard_error_message
.... <dtml-var standard_html_footer> <!-- <dtml-var error_tb> -->
Your choice - I opted for the second.
Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Is there a translation of the default standard_error_message to ZPT somewhere? Yeah, I can probably translate it, but if someone has already fixed the typos I will make it would be nice ;-) I did a google search and a zope.org search and found nothing... TIA, Sincerely, Richard Wesley Co-President, Electric Fish, Inc. <http://www.electricfish.com/> (v) +1-206-493-1690x210 (f) +1-206-493-1697
Yes, there is one in the CMF product. It should be easy to base one on it. -Casey On Tue, 22 Oct 2002 07:57:28 -0700 Richard Wesley <hawkfish@electricfish.com> wrote:
Is there a translation of the default standard_error_message to ZPT somewhere? Yeah, I can probably translate it, but if someone has already fixed the typos I will make it would be nice ;-) I did a google search and a zope.org search and found nothing...
TIA, Sincerely,
Richard Wesley Co-President, Electric Fish, Inc. <http://www.electricfish.com/> (v) +1-206-493-1690x210 (f) +1-206-493-1697
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Thanks! At 9:42 AM -0400 10/23/02, Casey Duncan wrote:
Yes, there is one in the CMF product. It should be easy to base one on it.
-Casey
On Tue, 22 Oct 2002 07:57:28 -0700 Richard Wesley <hawkfish@electricfish.com> wrote:
Is there a translation of the default standard_error_message to ZPT somewhere? Yeah, I can probably translate it, but if someone has already fixed the typos I will make it would be nice ;-) I did a google search and a zope.org search and found nothing...
TIA, Sincerely,
Richard Wesley Co-President, Electric Fish, Inc. <http://www.electricfish.com/> (v) +1-206-493-1690x210 (f) +1-206-493-1697
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Sincerely, Richard Wesley Co-President, Electric Fish, Inc. <http://www.electricfish.com/> (v) +1-206-493-1690x210 (f) +1-206-493-1697
On Tue, 22 Oct 2002 16:29:21 +0200 cyrille <cyrilleml@kbuilder.net> wrote:
Casey Duncan wrote:
Try adding the following to your standard_error_message:
<div tal:condition="options/error_log_url | nothing"> <hr noshade /> <a href="error_log_url" tal:attributes="href options/error_log_url"> Show Error Log Entry </a> </div>
but you need zope root Manager role to get access to that ressource .... it is not accessible by users that are Manager in a sub folder, like a virtualhost or CMF site ...
Then create a new one at the level you do have access to. It will be used for all errors at that level or below. hth, -Casey
participants (4)
-
Casey Duncan -
cyrille -
Richard Wesley -
Tony McDonald