From 612d7478492b8c96cb138b7ee6f9b1829d046fc8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 4 Jul 2008 06:30:02 +0000 Subject: Start on bfg. --- repoze/bfg/interfaces.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 repoze/bfg/interfaces.py (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py new file mode 100644 index 000000000..5e1a605ec --- /dev/null +++ b/repoze/bfg/interfaces.py @@ -0,0 +1,10 @@ +from zope.interface import Interface + +class IWSGIApplication(Interface): + def __call__(environ, start_response): + """ Represent a WSGI (PEP 333) application """ + +class IPolicy(Interface): + def __call__(environ): + """ Return a tuple in the form (context, name, subpath) """ + -- cgit v1.2.3