summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py18
1 files changed, 9 insertions, 9 deletions
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