diff options
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 10 |
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): |
