diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-05-31 02:17:28 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-05-31 02:17:28 +0000 |
| commit | 964b7852d997f6c4aa4b04d54f2847095e4461e8 (patch) | |
| tree | c03d316200f371f04e1c2c4618d64f860c808ed3 /repoze/bfg/interfaces.py | |
| parent | af8cbacc5466fcf9eae84564b0fa891892a986bf (diff) | |
| download | pyramid-964b7852d997f6c4aa4b04d54f2847095e4461e8.tar.gz pyramid-964b7852d997f6c4aa4b04d54f2847095e4461e8.tar.bz2 pyramid-964b7852d997f6c4aa4b04d54f2847095e4461e8.zip | |
- Renamed ``repoze.bfg.interfaces.IForbiddenResponseFactory`` to
``repoze.bfg.interfaces.IForbiddenView``.
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 18 |
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 |
