I have a preview for exception views functionality.

I've refactored Router to handle exceptions via IView lookups on
IRequest, Exception class. That means all exception views should be
global (not belongs to specific route) and exception views can be
clashed with ordinary views.

Forbidden and NotFound views are special case of exception views now.
Default views for that exceptions are registered via

All tests are pass, 5 tests cases was removed and 7 new was added.

If you like it, I will make other changes related to exception views
configuration (possibly add methods to Configurator API and new ZCML


On Fri, Mar 12, 2010 at 5:27 AM, Chris McDonough <chr...@plope.com> wrote:
> On 3/10/10 9:59 AM, Andrey Popp wrote:
>>> The context of such an "exception view" will be the exception instance
>>> itself.  If you want a particular exception to be able to use a "real"
>>> context, you'll make it available as an attribute of the exception for
>>> use
>>> by the registered exception view (e.g. context.context or so).
>> Thanks, this is that I was talking about. Will try to implement.
> Great.  This would be an excellent feature to have.
> --
> Chris McDonough
> Agendaless Consulting, Fredericksburg VA
> The repoze.bfg Web Application Framework Book: http://bfg.repoze.org/book

Andrey Popp

phone: +7 911 740 24 91
e-mail: 8may...@gmail.com
Repoze-dev mailing list

Reply via email to