Skip to content
Snippets Groups Projects
Commit 3feac914 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"identifications" --> "coreData"

parent c4f31818
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ def to_xml(year_cert):
if not 'error' in cert_doc:
###pprint(cert_doc)
res = make_response(trans.cert_to_xml(cert_doc))
res = utils.set_filename_header(res=res, no=year_cert.split("_")[1])
res = utils.set_filename_header(res=res, no=year_cert.split("-")[1])
return res
else:
return utils.res_json(cert_doc)
......
......@@ -40,23 +40,6 @@
{% endfor -%}
</dcc:name>
</dcc:manufacturer>
<dcc:identifications>
{%- for j in i.identifications['identification'] %}
<dcc:identification>
<dcc:issuer>{{j.issuer}}</dcc:issuer>
<dcc:value>{{j.value}}</dcc:value>
<dcc:description>
{%- for k in j['description'] %}
<dcc:content lang="{{k.lang}}">
{%- for l in k.content %}
{{l|safe}}
{% endfor -%}
</dcc:content>
{% endfor -%}
</dcc:description>
</dcc:identification>
{% endfor -%}
</dcc:identifications>
</dcc:item>
{% endfor -%}
</dcc:items>
......@@ -21,4 +21,22 @@
<dcc:endPerformanceDate>
{{x.endPerformanceDate}}
</dcc:endPerformanceDate>
<dcc:identifications>
{%- for i in x.identifications['identification'] %}
<dcc:identification>
<dcc:issuer>{{i.issuer}}</dcc:issuer>
<dcc:value>{{i.value}}</dcc:value>
<dcc:description>
{%- for j in i['description'] %}
<dcc:content lang="{{j.lang}}">
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
</dcc:content>
{% endfor -%}
</dcc:description>
</dcc:identification>
{% endfor -%}
</dcc:identifications>
</dcc:coreData>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment