Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-app / pithos / api / templates / objects.xml @ 8c306eab

History | View | Annotate | Download (518 Bytes)

1
<?xml version="1.0" encoding="UTF-8"?>
2
{% load get_type %}
3
<container name="{{ container }}">
4
  {% for object in objects %}
5
  {% if object.subdir %}
6
  <subdir name="{{ object.subdir }}" />
7
  {% else %}
8
  <object>
9
  {% for key, value in object.items %}
10
    <{{ key }}>{% if value|get_type == "dict" %}
11
      {% for k, v in value.iteritems %}<key>{{ k }}</key><value>{{ v }}</value>
12
      {% endfor %}
13
    {% else %}{{ value }}{% endif %}</{{ key }}>
14
  {% endfor %}
15
  </object>
16
  {% endif %}
17
  {% endfor %}
18
</container>