summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-05 01:33:25 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-05 01:33:25 +0000
commit5ed24b859b1e8deed12f73d1dc1808142218f61e (patch)
tree36ca317a5d2803d11d6c287b5be41f75791b3566 /repoze/bfg/interfaces.py
parent1da614e3dab88f4a7ccf97630e808c1c119a0f90 (diff)
downloadpyramid-5ed24b859b1e8deed12f73d1dc1808142218f61e.tar.gz
pyramid-5ed24b859b1e8deed12f73d1dc1808142218f61e.tar.bz2
pyramid-5ed24b859b1e8deed12f73d1dc1808142218f61e.zip
IWSGIApplication -> IWSGIApplicationFactory
The router is not middleware.
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py10
1 files changed, 7 insertions, 3 deletions
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):