diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-14 02:53:49 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-14 02:53:49 +0000 |
| commit | 94fd69db351acfcc9a99a329f438bdfb3fe2823d (patch) | |
| tree | 06b533e30d55452b9e729da207a5fa71a342139b /repoze | |
| parent | 8c756533cb1531cfa2ed72baf101b16c4af07829 (diff) | |
| download | pyramid-94fd69db351acfcc9a99a329f438bdfb3fe2823d.tar.gz pyramid-94fd69db351acfcc9a99a329f438bdfb3fe2823d.tar.bz2 pyramid-94fd69db351acfcc9a99a329f438bdfb3fe2823d.zip | |
Remove INotFoundView and IForbiddenView interfaces.
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/interfaces.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 53a905972..40d29348c 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -213,29 +213,6 @@ class IRoutesMapper(Interface): """ Return a matchdict for the request; the ``route`` key will either be a Route object or ``None`` if no route matched.""" -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): - """ Return an object implementing IResponse (an object with - the status, headerlist, and app_iter attributes) as a result - of a view invocation denial by a security policy. - - Note that the ``message`` key in the WSGI environ - (request.environ) provides information pertaining to the - reason for the view invocation denial. The ``context`` passed - to the forbidden app factory will be the context found by the - repoze.bfg router during traversal or url dispatch. The - ``request`` will be the request object which caused the deny.""" - -class INotFoundView(Interface): - """ A utility which returns a NotFound response (an IResponse) - when a view cannot be located for a particular URL""" - def __call__(context, request): - """ Return a NotFound response. When the view is rendered, - a``message`` key in the WSGI environ provides information - pertaining to the reason for the notfound error.""" - class IContextURL(Interface): """ An adapter which deals with URLs related to a context. """ |
