Re: Changing page-level error handler

Iwan Vosloo <[email protected]> Fri, 22 Dec 2006 11:57:10 +0200
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
Hi Jonathan,

On Thu, 2006-12-21 at 12:05 -0800, Jonathan Ellis wrote:
> On Thu, 21 Dec 2006 07:54:29 +0200, "Iwan Vosloo" <[email protected]> said:
> > Hi Philip,
> > 
> > On Wed, 2006-12-20 at 10:35 -0500, Philip Semanchuk wrote:
> > > And this bit of code works for me:
> > > pageerrortemplate = ('string', 'TheModuleName', 'TheFunctionName')
> > > 
> > 
> > Yes, that comment (except for the very first line, which refers to
> > "pageerror") applies to "pageerrortemplate" - as you use it.
> 
> That's just a mistake, all references should be to pageerrortemplate.

Ok, thanks, that makes sense.  So there's only the server error handler
function, and the page error template.

> > My (probably erroneous) understanding from what I've read is that there
> > is an error handling _function_ also, and that the default one renders
> > "pageerrortemplate".  
> 
> Well, that's kind of what the server-level errorhandler function does,
> by default.  So it sounds like overriding that is what you want to do.

But my understanding is that the server-level error handler will not be
called for, say spyce compilation errors or exceptions in python code
called from a spyce template.  Am I understanding correctly?

Thanks
-i


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV