summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorroot <root@tonbuntu>2010-11-08 20:38:21 -0800
committerroot <root@tonbuntu>2010-11-08 20:38:21 -0800
commitb78364281dc5d5090faf6da8fbdddf90d60e514b (patch)
treef359f4cf50498b08381367e88ecbed4b9b59b664 /nova/utils.py
parent2a81e25f89c761582d8cd575566f68d3ed5754ed (diff)
parent0131600277f5a2e7183640e1f0d9886315933c1a (diff)
downloadnova-b78364281dc5d5090faf6da8fbdddf90d60e514b.tar.gz
nova-b78364281dc5d5090faf6da8fbdddf90d60e514b.tar.xz
nova-b78364281dc5d5090faf6da8fbdddf90d60e514b.zip
merge in trunk
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py
index e7892a212..d7ebe5b4c 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -21,6 +21,7 @@ System-level utilities and helper functions.
"""
import datetime
+import functools
import inspect
import logging
import os
@@ -232,3 +233,10 @@ 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."""
+ @functools.wraps(wsgified_func.func)
+ def _f(*args, **kwargs):
+ wsgified_func(*args, **kwargs)
+ return _f