Revision 3d5906fe snf-cyclades-app/synnefo/api/util.py
b/snf-cyclades-app/synnefo/api/util.py | ||
---|---|---|
377 | 377 |
|
378 | 378 |
def render_meta(request, meta, status=200): |
379 | 379 |
if request.serialization == 'xml': |
380 |
key, val = meta.items()[0] |
|
380 | 381 |
data = render_to_string('meta.xml', dict(key=key, val=val)) |
381 | 382 |
else: |
382 | 383 |
data = json.dumps(dict(meta=meta)) |
Also available in: Unified diff