summaryrefslogtreecommitdiffstats
path: root/openstack/common/middleware/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/middleware/base.py')
-rw-r--r--openstack/common/middleware/base.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/openstack/common/middleware/base.py b/openstack/common/middleware/base.py
index 624a391..7236731 100644
--- a/openstack/common/middleware/base.py
+++ b/openstack/common/middleware/base.py
@@ -18,18 +18,16 @@ import webob.dec
class Middleware(object):
- """
- Base WSGI middleware wrapper. These classes require an application to be
- initialized that will be called next. By default the middleware will
- simply call its wrapped app, or you can override __call__ to customize its
- behavior.
+ """Base WSGI middleware wrapper.
+
+ These classes require an application to be initialized that will be called
+ next. By default the middleware will simply call its wrapped app, or you
+ can override __call__ to customize its behavior.
"""
@classmethod
def factory(cls, global_conf, **local_conf):
- """
- Factory method for paste.deploy
- """
+ """Factory method for paste.deploy."""
def filter(app):
return cls(app)
@@ -40,8 +38,7 @@ class Middleware(object):
self.application = application
def process_request(self, req):
- """
- Called on each request.
+ """Called on each request.
If this returns None, the next application down the stack will be
executed. If it returns a response then that response will be returned