summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
blob: b6d7ff623f4b4888e30a4bc918f9d604b0e1fb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from zope.interface import Interface

class IWSGIApplication(Interface):
    def __call__(environ, start_response):
        """ Represent a WSGI (PEP 333) application """

class ITraversalPolicy(Interface):
    def __call__(environ, root):
        """ Return a tuple in the form (context, name, subpath) """
        
class ITraverser(Interface):
    def __init__(context):
        """ Accept a context """

    def __call__(environ, name):
        """ Return a subcontext or based on name """