diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-05-26 17:27:48 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-05-26 17:27:48 -0400 |
| commit | a79f01fcea81bb6be233a65670c6a79af8534a10 (patch) | |
| tree | 3c38ca8056c916f69a51be3abbd3ae5899d3572e | |
| parent | 3264c18fffa26b1288fc253f2526d9a78fdc9dd4 (diff) | |
| download | nova-a79f01fcea81bb6be233a65670c6a79af8534a10.tar.gz nova-a79f01fcea81bb6be233a65670c6a79af8534a10.tar.xz nova-a79f01fcea81bb6be233a65670c6a79af8534a10.zip | |
adding TODOs per dabo's review
| -rw-r--r-- | nova/api/openstack/wsgi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py index 7a747842e..ddf4e6fa9 100644 --- a/nova/api/openstack/wsgi.py +++ b/nova/api/openstack/wsgi.py @@ -237,6 +237,7 @@ class XMLDictSerializer(DictSerializer): if xmlns: result.setAttribute('xmlns', xmlns) + #TODO(bcwaldon): accomplish this without a type-check if type(data) is list: collections = metadata.get('list_collections', {}) if nodename in collections: @@ -255,6 +256,7 @@ class XMLDictSerializer(DictSerializer): for item in data: node = self._to_xml_node(doc, metadata, singular, item) result.appendChild(node) + #TODO(bcwaldon): accomplish this without a type-check elif type(data) is dict: collections = metadata.get('dict_collections', {}) if nodename in collections: |
