replace webob.Response with werkzeug Response
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 16 Nov 2012 10:21:15 +0000 (11:21 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 21 Dec 2012 07:12:25 +0000 (08:12 +0100)
commit74af60bb32f9009b838f7acee73c9a6cca2be265
treecaf42c66268d06101208a5e04f62865833b5d762
parentbf3b9e783dc86b38864e66c2aab149472e636461
replace webob.Response with werkzeug Response

Replace webob usage in one more file. Document a TODO that should
be clarified, we should probably be using json_response rather than
Response() here.

Modify the TestMeddleware to not rely on the content_type attribute
being present, while werkzeug.wrappers Response() has it the BaseResponse()
object which is often returned in tests does not have it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/plugins/api/views.py
mediagoblin/tests/tools.py