root / snf-pithos-app / pithos / api / templates / objects.xml @ 4a66acbf
History | View | Annotate | Download (518 Bytes)
1 | 94195dd0 | Antony Chazapis | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | 690747fe | Antony Chazapis | {% load get_type %} |
3 | 94195dd0 | Antony Chazapis | <container name="{{ container }}"> |
4 | 94195dd0 | Antony Chazapis | {% for object in objects %} |
5 | b956618e | Antony Chazapis | {% if object.subdir %} |
6 | b956618e | Antony Chazapis | <subdir name="{{ object.subdir }}" /> |
7 | b956618e | Antony Chazapis | {% else %} |
8 | 94195dd0 | Antony Chazapis | <object>
|
9 | b956618e | Antony Chazapis | {% for key, value in object.items %} |
10 | 690747fe | Antony Chazapis | <{{ key }}>{% if value|get_type == "dict" %} |
11 | 690747fe | Antony Chazapis | {% for k, v in value.iteritems %}<key>{{ k }}</key><value>{{ v }}</value> |
12 | 690747fe | Antony Chazapis | {% endfor %} |
13 | 690747fe | Antony Chazapis | {% else %}{{ value }}{% endif %}</{{ key }}> |
14 | b956618e | Antony Chazapis | {% endfor %} |
15 | 94195dd0 | Antony Chazapis | </object>
|
16 | b956618e | Antony Chazapis | {% endif %} |
17 | 94195dd0 | Antony Chazapis | {% endfor %} |
18 | 94195dd0 | Antony Chazapis | </container> |