From 30e64f38f3a01d71f8a728df9d56f31d950ebd20 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Apr 2010 18:49:29 +0000 Subject: Make default_notfound_view and default_forbidden_view expect an exception as a context. Cause append_slash_notfound_view to work in case it is registered via set_notfound_view. --- repoze/bfg/exceptions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'repoze/bfg/exceptions.py') diff --git a/repoze/bfg/exceptions.py b/repoze/bfg/exceptions.py index a50da36b2..e7b6dd570 100644 --- a/repoze/bfg/exceptions.py +++ b/repoze/bfg/exceptions.py @@ -9,8 +9,9 @@ class Forbidden(Exception): This exception's constructor accepts a single positional argument, which should be a string. The value of this string will be placed - into the WSGI environment under the ``repoze.bfg.message`` key, - for availability to the Forbidden view.""" + into the WSGI environment by the router under the + ``repoze.bfg.message`` key, for availability to the + :term:`Forbidden View`.""" class NotFound(Exception): """\ @@ -21,8 +22,9 @@ class NotFound(Exception): This exception's constructor accepts a single positional argument, which should be a string. The value of this string will be placed - into the WSGI environment under the ``repoze.bfg.message`` key, - for availability to the Not Found view.""" + into the WSGI environment by the router under the + ``repoze.bfg.message`` key, for availability to the :term:`Not Found + View`.""" class ConfigurationError(ZCE): """ Raised when inappropriate input values are supplied to an API -- cgit v1.2.3