Changing page-level error handler
Iwan Vosloo <[email protected]> Wed, 20 Dec 2006 14:57:07 +0200
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hi there, I'm struggling to get Spyce to use my custom page-level error handler. According to the comments in the spyceconf.py, I need to set pageerror to a function: "# The pageerror option sets the default page-level error handler." The docs at http://spyce.sourceforge.net/docs/doc-mod_error.html do not dispute this, but does not give the name of the config variable to be set. However, my function seems never to get called. What am I missing? Here's my test: ---- spyceconf.py --- def my_handler(*args): raise 'handler called' pageerror = my_handler ----- somepage.spy ----- [[raise 'this is an error']] -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