summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-11 03:15:15 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-11 03:15:15 +0000
commitdfc2b65c1b6d2f938f68b7868a14d8f9a4faab9e (patch)
treef3241401b7175a401e00286b11e3efe3c21f5093 /repoze/bfg/interfaces.py
parentf8b0065b6ede54424d7a7b49f9f113e87634b5ab (diff)
downloadpyramid-dfc2b65c1b6d2f938f68b7868a14d8f9a4faab9e.tar.gz
pyramid-dfc2b65c1b6d2f938f68b7868a14d8f9a4faab9e.tar.bz2
pyramid-dfc2b65c1b6d2f938f68b7868a14d8f9a4faab9e.zip
Merge unifyroutesandtraversal branch into trunk
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py25
1 files changed, 5 insertions, 20 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py
index 79ef25f09..b8f62c05f 100644
--- a/repoze/bfg/interfaces.py
+++ b/repoze/bfg/interfaces.py
@@ -3,13 +3,6 @@ from zope.interface import Interface
from zope.component.interfaces import IObjectEvent
-class IRequestFactory(Interface):
- """ A utility which generates a request object """
- def __call__():
- """ Return a request factory (a callable that accepts an
- environ and returns an object implementing IRequest,
- e.g. ``webob.Request``)"""
-
class IRequest(Interface):
""" Request type interface attached to all request objects """
@@ -47,7 +40,11 @@ class IView(Interface):
class IRootFactory(Interface):
def __call__(environ):
- """ Return a root object """
+ """ Return a root object based on the WSGI environ """
+
+class IDefaultRootFactory(Interface):
+ def __call__(environ):
+ """ Return the *default* root object for an application """
class ITraverser(Interface):
def __call__(environ):
@@ -126,10 +123,6 @@ class IRouter(Interface):
registry = Attribute(
"""Component architecture registry local to this application.""")
-class IRoutesContext(Interface):
- """ A context (model instance) that is created as a result of URL
- dispatching"""
-
class INewRequest(Interface):
""" An event type that is emitted whenever repoze.bfg begins to
process a new request """
@@ -165,10 +158,6 @@ class ILogger(Interface):
class IRoutesMapper(Interface):
""" Interface representing a Routes ``Mapper`` object """
-class IContextNotFound(Interface):
- """ Interface implemented by contexts generated by code which
- cannot find a context during root finding or traversal """
-
class IForbiddenView(Interface):
""" A utility which returns an IResponse as the result of the
denial of a view invocation by a security policy."""
@@ -210,10 +199,6 @@ class IContextURL(Interface):
def __call__():
""" Return a URL that points to the context """
-class IRoutesContextFactory(Interface):
- """ A marker interface used to look up the default routes context factory
- """
-
class IAuthenticationPolicy(Interface):
""" An object representing a BFG authentication policy. """
def authenticated_userid(request):