diff options
author | Chris McDonough <chrism@plope.com> | 2011-03-20 23:25:37 -0400 |
---|---|---|
committer | Chris McDonough <chrism@plope.com> | 2011-03-20 23:25:37 -0400 |
commit | d8176e7279e19ab3e618056555a05d710bb161d4 (patch) | |
tree | 43717841fd1326d22a4aaea2d1a17c1c0ce72fcb /webob/dec.py | |
parent | 1c4912af221e89ecf117154e2708f58984287ad8 (diff) | |
parent | c3f021fbf2fd027b0778ca9dadc79ae7b2a5394b (diff) | |
download | webob-tests.pycon2011.tar.gz |
merge from headtests.pycon2011
Diffstat (limited to 'webob/dec.py')
-rw-r--r-- | webob/dec.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webob/dec.py b/webob/dec.py index 8707bb1..f14194b 100644 --- a/webob/dec.py +++ b/webob/dec.py @@ -67,7 +67,7 @@ class wsgify(object): * A string, which will be written to ``req.response`` and then that response will be used. * Raise an exception from :mod:`webob.exc` - + Also see :func:`wsgify.middleware` for a way to make middleware. You can also subclass this decorator; the most useful things to do @@ -75,7 +75,7 @@ class wsgify(object): `call_func` (e.g., to add ``req.urlvars`` as keyword arguments to the function). """ - + RequestClass = webob.Request def __init__(self, func=None, RequestClass=None, @@ -98,7 +98,7 @@ class wsgify(object): if self.RequestClass is not self.__class__.RequestClass: args.append('RequestClass=%r' % self.RequestClass) if self.args: - args.append('args=%r' % self.args) + args.append('args=%r' % (self.args,)) my_name = self.__class__.__name__ if self.middleware_wraps is not None: my_name = '%s.middleware' % my_name @@ -275,7 +275,7 @@ class _UnboundMiddleware(object): middleware function; the intermediate object when you do something like ``@wsgify.middleware(RequestClass=Foo)`` """ - + def __init__(self, wrapper_class, app, kw): self.wrapper_class = wrapper_class self.app = app @@ -297,7 +297,7 @@ class _MiddlewareFactory(object): """A middleware that has not yet been bound to an application or configured. """ - + def __init__(self, wrapper_class, middleware, kw): self.wrapper_class = wrapper_class self.middleware = middleware |