File: oadrCreatedPartyRegistration.xml

package info (click to toggle)
python-openleadr-python 0.5.34%2Bdfsg.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,496 kB
  • sloc: python: 6,942; xml: 663; makefile: 32; sh: 18
file content (41 lines) | stat: -rw-r--r-- 1,810 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
<oadr:oadrSignedObject xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07" oadr:Id="oadrSignedObject">
  <oadr:oadrCreatedPartyRegistration ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
    <ei:eiResponse>
      <ei:responseCode>{{ response.response_code }}</ei:responseCode>
      <ei:responseDescription>{{ response.response_description }}</ei:responseDescription>
      <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ response.request_id }}</requestID>
    </ei:eiResponse>
    {% if registration_id is defined and registration_id is not none %}
    <ei:registrationID>{{ registration_id }}</ei:registrationID>
    {% else %}
    <ei:registrationID />
    {% endif %}

    {% if ven_id is defined and ven_id is not none %}
    <ei:venID>{{ ven_id }}</ei:venID>
    {% else %}
    <ei:venID />
    {% endif %}

    <ei:vtnID>{{ vtn_id }}</ei:vtnID>
    <oadr:oadrProfiles>
    {% for profile in profiles %}
      <oadr:oadrProfile>
        <oadr:oadrProfileName>{{ profile.profile_name }}</oadr:oadrProfileName>
        <oadr:oadrTransports>
          {% for transport in profile.transports %}
          <oadr:oadrTransport>
            <oadr:oadrTransportName>{{ transport.transport_name }}</oadr:oadrTransportName>
          </oadr:oadrTransport>
          {% endfor %}
        </oadr:oadrTransports>
      </oadr:oadrProfile>
    {% endfor %}
    </oadr:oadrProfiles>
    {% if requested_oadr_poll_freq is defined and requested_oadr_poll_freq is not none %}
    <oadr:oadrRequestedOadrPollFreq>
      <duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">{{ requested_oadr_poll_freq|timedeltaformat }}</duration>
    </oadr:oadrRequestedOadrPollFreq>
    {% endif %}
  </oadr:oadrCreatedPartyRegistration>
</oadr:oadrSignedObject>