File: oadrRegisterReport.xml

package info (click to toggle)
python-openleadr-python 0.5.34%2Bdfsg.1-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,548 kB
  • sloc: python: 6,946; xml: 663; makefile: 32; sh: 18
file content (31 lines) | stat: -rw-r--r-- 1,722 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<oadr:oadrSignedObject xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07" oadr:Id="oadrSignedObject">
  <oadr:oadrRegisterReport ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
    <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ request_id }}</requestID>
{% for report in reports %}
    <oadr:oadrReport xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:strm="urn:ietf:params:xml:ns:icalendar-2.0:stream">
      {% if report.duration is defined and report.duration is not none %}
      <xcal:duration>
        <xcal:duration>{{ report.duration|timedeltaformat }}</xcal:duration>
      </xcal:duration>
      {% endif %}
      {% if report.report_id is defined and report.report_id is not none and not report.report_name.startswith('METADATA') %}
      <ei:eiReportID>{{ report.report_id }}</ei:eiReportID>
      {% endif %}
  {% for report_description in report.report_descriptions %}
      {% include 'parts/oadrReportDescription.xml' %}
  {% endfor %}
      {% if report.report_request_id is defined and report.report_request_id is not none %}
      <ei:reportRequestID>{{ report.report_request_id }}</ei:reportRequestID>
      {% else %}
      <ei:reportRequestID>0</ei:reportRequestID>
      {% endif %}
      <ei:reportSpecifierID>{{ report.report_specifier_id }}</ei:reportSpecifierID>
      <ei:reportName>{{ report.report_name }}</ei:reportName>
      <ei:createdDateTime>{{ report.created_date_time|datetimeformat }}</ei:createdDateTime>
    </oadr:oadrReport>
{% endfor %}
    {% if ven_id is defined and ven_id is not none %}
    <ei:venID>{{ ven_id }}</ei:venID>
    {% endif %}
  </oadr:oadrRegisterReport>
</oadr:oadrSignedObject>