Rendering ones Own Error Message
Hi, I want to render my own error message when the user attempts to traverse an incorrect URL instead of the Zope Error Message. The Zope Error Message gets displayed on a notFoundError exception under the HTTPResponse.py. Is it possible to use the standard_error_message dtml-method which is automatically generated by zope in the root folder to display my own error message? If so,please refer to the procedure/changes required. Thanks in advance. Bye, A.R.K -- Windows Sucks!!Linux Rules!!!.
I want to render my own error message when the user attempts to traverse an incorrect URL instead of the Zope Error Message. The Zope Error Message gets displayed on a notFoundError exception under the HTTPResponse.py. Is it possible to use the standard_error_message dtml-method which is automatically generated by zope in the root folder to display my own error message? If so,please refer to the procedure/changes required.
you can have as many standrad_error_message method as you like, each one being used in it's folder and subfolders. you just have to change whatever you want in the method ans it works ;-))) keep the error tracebacks in comments and display something nice to your users. use a custom error message in folders that can be seen by users and keep the basic one in folder where you are working.
junk<
Hi, Thanks for the info.But I had changed standard_error_message to my desired content,before mailing.But I was getting the same old Zope Error Message.But now it works.The method was cached,and hence it wasn't working. Anyway thanks again. Bye, A.R.K -- Windows Sucks!!Linux Rules!!!.
participants (2)
-
Junk -
karthick ramanarayanan