Hi all,
I want to give out another error message (not the standard error message) when logging was without success.

Zope Error

Zope has encountered an error while publishing this resource.


You are not authorized to access this resource.

No Authorization header found.

Traceback (innermost last):
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 151, in publish
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py, line 446, in traverse
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/HTTPResponse.py, line 551, in unauthorized
Unauthorized: (see above)

Troubleshooting Suggestions

  • The URL may be incorrect.
  • The parameters passed to this resource may be incorrect.
  • A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the HTML source for this page.

If the error persists please contact the site maintainer. Thank you for your patience.

how can I mange this.
I tryed it with the standard_error_message:
<dtml-if "error_type == 'Unauthorized'">
  <dtml-return standard_Unauthorized_html>
but that doesen´t work.
Any ideas?

Reply via email to