From 5ed24b859b1e8deed12f73d1dc1808142218f61e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 5 Jul 2008 01:33:25 +0000 Subject: IWSGIApplication -> IWSGIApplicationFactory The router is not middleware. --- repoze/bfg/interfaces.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index b6d7ff623..e915519e0 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -1,8 +1,12 @@ from zope.interface import Interface -class IWSGIApplication(Interface): - def __call__(environ, start_response): - """ Represent a WSGI (PEP 333) application """ +class IWSGIApplicationFactory(Interface): + def __call__(context): + """ Return a WSGI (PEP333) application """ + +class IRootPolicy(Interface): + def __call__(environ): + """ Return a root object """ class ITraversalPolicy(Interface): def __call__(environ, root): -- cgit v1.2.3