diff options
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 814e558f6..992ec80d9 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -87,6 +87,16 @@ class IResponseFactory(Interface): should accept all the arguments that the webob.Response class accepts)""" +class IRequestFactory(Interface): + """ A utility which generates a request """ + def __call__(environ): + """ Return an object implementing IRequest, e.g. an instance + of ``repoze.bfg.request.Request``""" + + def blank(path): + """ Return an empty request object (see + ``webob.Request.blank``)""" + class IViewClassifier(Interface): """ *Internal only* marker interface for views.""" |
