diff options
| author | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-08-23 12:55:57 -0400 |
|---|---|---|
| committer | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-08-23 12:55:57 -0400 |
| commit | a50a200bc2547439a3da17e695224d3d434e14dd (patch) | |
| tree | e03015def47109b934f2bd640bd83bd80be7b0fc /nova/api | |
| parent | 776e34c572e6b74c54994905573c1540b6e3a9ba (diff) | |
| download | nova-a50a200bc2547439a3da17e695224d3d434e14dd.tar.gz nova-a50a200bc2547439a3da17e695224d3d434e14dd.tar.xz nova-a50a200bc2547439a3da17e695224d3d434e14dd.zip | |
Move serialize() to wsgi.Controller so __call__ can serialize() action return values if they are dicts.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/rackspace/base.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/nova/api/rackspace/base.py b/nova/api/rackspace/base.py index b995d9acc..51841925e 100644 --- a/nova/api/rackspace/base.py +++ b/nova/api/rackspace/base.py @@ -28,13 +28,3 @@ class Controller(wsgi.Controller): return {cls.entity_name: cls.render(instance)} else: return { "TODO": "TODO" } - - def serialize(self, data, request): - """ - Serialize the given dict to the response type requested in request. - Uses self._serialization_metadata if it exists, which is a dict mapping - MIME types to information needed to serialize to that type. - """ - _metadata = getattr(type(self), "_serialization_metadata", {}) - serializer = wsgi.Serializer(request.environ, _metadata) - return serializer.to_content_type(data) |
