"""
import webob.dec
-from quantum.api import api_common as common
from quantum.common import wsgi
fault_data = {
fault_name: {
'code': code,
- 'message': self.wrapped_exc.explanation,
- 'detail': self.wrapped_exc.detail}}
+ 'message': self.wrapped_exc.explanation}}
# 'code' is an attribute on the fault tag itself
- metadata = {'application/xml': {'attributes': {fault_name: 'code'}}}
- default_xmlns = common.XML_NS_V10
- serializer = wsgi.Serializer(metadata, default_xmlns)
content_type = req.best_match_content_type()
- #self.wrapped_exc.body = serializer.serialize(fault_data, content_type)
+ self.wrapped_exc.body = wsgi.Serializer().\
+ serialize(fault_data, content_type)
self.wrapped_exc.content_type = content_type
return self.wrapped_exc