On 11/4/05, Kevin Dangoor <[EMAIL PROTECTED]> wrote:
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

Hm. No matter what I tried, I wasn't hitting the error handler. The page in question also seems to be a little off on a number of points (wrong package, etc). Methinks handling of _cpOnError may have changed and it's not yet in the docs.

The wierd thing is that that method doesn't actually seem to appear *anywhere* in the source code for CP except for the test suites and as a bare-bones def in _cperror.py.

On the theory that TG was trapping it first, I checked but didn't find anything there, either.

I've poked around to see if there has been another change or three that might affect this but I'm coming up all goose-eggs.

Fortunately, Jeff's method works OK for now. Ultimately I want to do it the right way, of course.
 
--
"Things fall apart. The Center cannot hold."
                  - Life as a QA geek, in a nutshell.

Best,

    Jeff

Reply via email to