The docs are just going to be wrong for now. I'll file a bug upstream.

This commit is contained in:
Todd Willey 2010-11-15 21:08:08 -05:00
parent f3744b0de8
commit ff3ec33010
2 changed files with 0 additions and 9 deletions

View File

@ -84,7 +84,6 @@ class API(wsgi.Router):
mapper.connect("/cloudpipe/{path_info:.*}", controller=cloudpipe.API())
super(API, self).__init__(mapper)
@utils.fix_wsgify_docstr
@webob.dec.wsgify
def osapi_versions(self, req):
"""Respond to a request for all OpenStack API versions."""
@ -96,7 +95,6 @@ class API(wsgi.Router):
"attributes": dict(version=["status", "id"])}}
return wsgi.Serializer(req.environ, metadata).to_content_type(response)
@utils.fix_wsgify_docstr
@webob.dec.wsgify
def ec2api_versions(self, req):
"""Respond to a request for all EC2 versions."""

View File

@ -233,10 +233,3 @@ def utf8(value):
return value.encode("utf-8")
assert isinstance(value, str)
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