The docs are just going to be wrong for now. I'll file a bug upstream.
This commit is contained in:
parent
f3744b0de8
commit
ff3ec33010
@ -84,7 +84,6 @@ class API(wsgi.Router):
|
|||||||
mapper.connect("/cloudpipe/{path_info:.*}", controller=cloudpipe.API())
|
mapper.connect("/cloudpipe/{path_info:.*}", controller=cloudpipe.API())
|
||||||
super(API, self).__init__(mapper)
|
super(API, self).__init__(mapper)
|
||||||
|
|
||||||
@utils.fix_wsgify_docstr
|
|
||||||
@webob.dec.wsgify
|
@webob.dec.wsgify
|
||||||
def osapi_versions(self, req):
|
def osapi_versions(self, req):
|
||||||
"""Respond to a request for all OpenStack API versions."""
|
"""Respond to a request for all OpenStack API versions."""
|
||||||
@ -96,7 +95,6 @@ class API(wsgi.Router):
|
|||||||
"attributes": dict(version=["status", "id"])}}
|
"attributes": dict(version=["status", "id"])}}
|
||||||
return wsgi.Serializer(req.environ, metadata).to_content_type(response)
|
return wsgi.Serializer(req.environ, metadata).to_content_type(response)
|
||||||
|
|
||||||
@utils.fix_wsgify_docstr
|
|
||||||
@webob.dec.wsgify
|
@webob.dec.wsgify
|
||||||
def ec2api_versions(self, req):
|
def ec2api_versions(self, req):
|
||||||
"""Respond to a request for all EC2 versions."""
|
"""Respond to a request for all EC2 versions."""
|
||||||
|
@ -233,10 +233,3 @@ def utf8(value):
|
|||||||
return value.encode("utf-8")
|
return value.encode("utf-8")
|
||||||
assert isinstance(value, str)
|
assert isinstance(value, str)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
def fix_wsgify_docstr(wsgified_func):
|
|
||||||
"""A decorator to re-assign docstrings that webob.dec.wsgify clobbers."""
|
|
||||||
wsgified_func.__doc__ = wsgified_func.func.__doc__
|
|
||||||
wsgified_func.func_name = wsgified_func.func.func_name
|
|
||||||
return wsgified_func
|
|
||||||
|
Loading…
Reference in New Issue
Block a user