It's depends of the TG version.
TG version 0.8.9 doesn't support this feature.
I upgraded to 0.9a6 and it works
It was unclear to me reading the doc.
Arnold

Arnold wrote:
> I want to change the default error pages. I need nicer and  less
> explicit web pages.
> I wrote the following code :
>
> class Root(controllers.Root):
>
>       def _cp_on_error(self, status, message):
>               appliLogger.debug("Server error : " + status + " " + message)
>               cherrypy.response.body = ("We apologise for the fault in the
> website.")
>               return
>
>       def     _cp_on_http_error(self, status, message):
>               appliLogger.debug("Http Server error : " + status + " " + 
> message)
>               _cputil._cp_on_http_error(status, message)
>               cherrypy.response.body = ("Sorry your request can't be 
> processed.")
>               return
>
> CherryPie ignores it, and nothing has changed !  Default pages are
> still returned.
> _cp_on_http_error is not invoked on error.
> Can you advice me on how to customise TG and CP for that ?
> Thanks
> Arnold


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to