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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py
index 16a4a7b21..196809437 100644
--- a/repoze/bfg/interfaces.py
+++ b/repoze/bfg/interfaces.py
@@ -75,6 +75,13 @@ class IViewPermissionFactory(Interface):
def __call__(context, request):
""" Return an IViewPermission """
+class IRouter(Interface):
+ """WSGI application which routes requests to 'view' code based on
+ a view registry."""
+
+ registry = interface.Attribute(
+ """Component architecture registry local to this application.""")
+
class IRoutesContext(Interface):
""" A context (model instance) that is created as a result of URL
dispatching"""