From eba6f875f3fd0af8ff0aa5ba821c3f899535348f Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Tue, 30 Sep 2008 16:13:19 +0000 Subject: Formally declare registry attribute. --- repoze/bfg/interfaces.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'repoze/bfg/interfaces.py') 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""" -- cgit v1.2.3