On 11/3/05, Jeff Grimmett <[EMAIL PROTECTED]> wrote:
> What's the best way to handle this? Dispose of default() and use the CP
> error handler instead?

That is a better route, because the default method will only work for
a single controller. _cpOnError will apply for all of the controllers
down the tree.

This page is mostly correct:
http://www.cherrypy.org/wiki/HandleErrors

(you'll have to change the cpgs to cherrypys.)

I *think* if you decorate _cpOnError with turbogears.expose, you'll be
able to render a template as normal. If not, you'll need to call
turbogears.view.render() yourself to get the rendered output.

Kevin

Reply via email to