From 239a93313a3af9a29ab1e09e54ba970e369a11f2 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 12 Sep 2010 12:52:54 +0000 Subject: put exception view in glossary --- docs/glossary.rst | 25 +++++++++++++++---------- repoze/bfg/interfaces.py | 8 ++++---- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/docs/glossary.rst b/docs/glossary.rst index 4c1c0ebab..a703f187c 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -586,26 +586,31 @@ Glossary a set of :term:`configuration declaration` statements. Not Found view - The :term:`view callable` invoked by :mod:`repoze.bfg` when the - developer explicitly raises a - ``repoze.bfg.exceptions.NotFound`` exception from within - :term:`view` code or :term:`root factory` code, or when the - current request doesn't match any :term:`view configuration`. - :mod:`repoze.bfg` provides a default implementation of a not - found view; it can be overridden. See + An :term:`exception view` invoked by :mod:`repoze.bfg` when the + developer explicitly raises a ``repoze.bfg.exceptions.NotFound`` + exception from within :term:`view` code or :term:`root factory` + code, or when the current request doesn't match any :term:`view + configuration`. :mod:`repoze.bfg` provides a default + implementation of a not found view; it can be overridden. See :ref:`changing_the_notfound_view`. Forbidden view - The :term:`view callable` invoked by :mod:`repoze.bfg` when the + An :term:`exception view` invoked by :mod:`repoze.bfg` when the developer explicitly raises a ``repoze.bfg.exceptions.Forbidden`` exception from within :term:`view` code or :term:`root factory` code, or when the - :term:`view configuration` and :term:`authorization policy` found - for a request disallows a particular view invocation. + :term:`view configuration` and :term:`authorization policy` + found for a request disallows a particular view invocation. :mod:`repoze.bfg` provides a default implementation of a forbidden view; it can be overridden. See :ref:`changing_the_forbidden_view`. + Exception view + An exception view is a :term:`view callable` which may be + invoked by :mod:`repoze.bfg` when an exception is raised during + request processing. See :ref:`exception_views` for more + information. + thread local A thread-local variable is one which is essentially a global variable in terms of how it is accessed and treated, however, diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 8730a5294..3f3794a53 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -40,9 +40,11 @@ class IApplicationCreated(Interface): .. note:: For backwards compatibility with :mod:`repoze.bfg` versions before 1.3, this interface can also be imported as - :class:`repoze.bfg.interfaces.IWSGIApplicationCreatedEvent. + :class:`repoze.bfg.interfaces.IWSGIApplicationCreatedEvent`. """ - app = Attribute(u"Published application") + app = Attribute(u"Created application") + +IWSGIApplicationCreatedEvent = IApplicationCreated # b /c class IFinishedRequest(Interface): """ @@ -55,8 +57,6 @@ class IFinishedRequest(Interface): """ request = Attribute('The request object') -IWSGIApplicationCreatedEvent = IApplicationCreated # b /c - class IResponse(Interface): # not an API status = Attribute('WSGI status code of response') headerlist = Attribute('List of response headers') -- cgit v1.2.3