summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-14 02:53:49 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-14 02:53:49 +0000
commit94fd69db351acfcc9a99a329f438bdfb3fe2823d (patch)
tree06b533e30d55452b9e729da207a5fa71a342139b
parent8c756533cb1531cfa2ed72baf101b16c4af07829 (diff)
downloadpyramid-94fd69db351acfcc9a99a329f438bdfb3fe2823d.tar.gz
pyramid-94fd69db351acfcc9a99a329f438bdfb3fe2823d.tar.bz2
pyramid-94fd69db351acfcc9a99a329f438bdfb3fe2823d.zip
Remove INotFoundView and IForbiddenView interfaces.
-rw-r--r--TODO.txt2
-rw-r--r--repoze/bfg/interfaces.py23
2 files changed, 0 insertions, 25 deletions
diff --git a/TODO.txt b/TODO.txt
index 22059667a..e6bbca8df 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -7,8 +7,6 @@
- Basic WSGI documentation (pipeline / app / server).
-- Decide on INotFoundView and IForbidden interface, which are obsolete now.
-
- Document exception view lookup machinery:
- Lookup proceeds by request interface first and then by interface provided
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.
"""