From 964b7852d997f6c4aa4b04d54f2847095e4461e8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 31 May 2009 02:17:28 +0000 Subject: - Renamed ``repoze.bfg.interfaces.IForbiddenResponseFactory`` to ``repoze.bfg.interfaces.IForbiddenView``. --- repoze/bfg/interfaces.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index bc91c6b0e..8316c58bc 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -169,15 +169,7 @@ class IContextNotFound(Interface): """ Interface implemented by contexts generated by code which cannot find a context during root finding or traversal """ -class INotFoundAppFactory(Interface): - """ A utility which returns a NotFound WSGI application factory """ - def __call__(): - """ Return a callable which returns a notfound WSGI - application. When the WSGI application is invoked, - a``message`` key in the WSGI environ provides information - pertaining to the reason for the notfound.""" - -class IForbiddenResponseFactory(Interface): +class IForbiddenView(Interface): """ A utility which returns an IResponse as the result of the denial of a view invocation by a security policy.""" def __call__(context, request): @@ -192,6 +184,14 @@ class IForbiddenResponseFactory(Interface): repoze.bfg router during traversal or url dispatch. The ``request`` will be the request object which caused the deny.""" +class INotFoundAppFactory(Interface): + """ A utility which returns a NotFound WSGI application factory """ + def __call__(): + """ Return a callable which returns a notfound WSGI + application. When the WSGI application is invoked, + a``message`` key in the WSGI environ provides information + pertaining to the reason for the notfound.""" + class IUnauthorizedAppFactory(Interface): """ A utility which returns an Unauthorized WSGI application factory (deprecated in repoze.bfg 0.8.2) in favor of -- cgit v1.2.3