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

"identifications" --> "coreData"

parent c4f31818
Branches
Tags 0.1.32
No related merge requests found
...@@ -24,7 +24,7 @@ def to_xml(year_cert): ...@@ -24,7 +24,7 @@ def to_xml(year_cert):
if not 'error' in cert_doc: if not 'error' in cert_doc:
###pprint(cert_doc) ###pprint(cert_doc)
res = make_response(trans.cert_to_xml(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 return res
else: else:
return utils.res_json(cert_doc) return utils.res_json(cert_doc)
......
...@@ -40,23 +40,6 @@ ...@@ -40,23 +40,6 @@
{% endfor -%} {% endfor -%}
</dcc:name> </dcc:name>
</dcc:manufacturer> </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> </dcc:item>
{% endfor -%} {% endfor -%}
</dcc:items> </dcc:items>
...@@ -21,4 +21,22 @@ ...@@ -21,4 +21,22 @@
<dcc:endPerformanceDate> <dcc:endPerformanceDate>
{{x.endPerformanceDate}} {{x.endPerformanceDate}}
</dcc: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> </dcc:coreData>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment