File: oadrCreateOpt.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 (37 lines) | stat: -rw-r--r-- 1,911 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
<oadr:oadrSignedObject oadr:Id="oadrSignedObject" xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07">
  <oadr:oadrCreateOpt ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0">
    <ei:optID>{{ opt_id }}</ei:optID>
    <ei:optType>{{ opt_type }}</ei:optType>
    <ei:optReason>{{ opt_reason }}</ei:optReason>
    {% if market_context is defined and market_context is not none %}
    <emix:marketContext>{{ market_context }}</emix:marketContext>
    {% endif %}
    <ei:venID>{{ ven_id }}</ei:venID>
    {% if vavailability is defined and vavalailability is not none %}
    <xcal:vavailability>
      <xcal:components>
        {% for component in vavailability.components %}
        <xcal:available>
          <xcal:properties>
            <xcal:dtstart>
              <xcal:date-time>{{ component.dtstart|datetimeformat }}</xcal:date-time></xcal:dtstart>
            <xcal:duration>
              <xcal:duration>{{ component.duration|timedeltaformat }}</xcal:duration>
            </xcal:duration>
          </xcal:properties>
        </xcal:available>{% endfor %}</xcal:components>
    </xcal:vavailability>
    {% endif %}
    <ei:createdDateTime>{{ created_date_time|datetimeformat }}</ei:createdDateTime>
    <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ request_id }}</requestID>
    {% if event_id is defined and event_id is not none %}
    <ei:qualifiedEventID>
      <ei:eventID>{{ event_id }}</ei:eventID>
      <ei:modificationNumber>{{ modification_number }}</ei:modificationNumber>
    </ei:qualifiedEventID>
    {% endif %}
    {% for target in targets %}
    {% include 'parts/eiTarget.xml' %}
    {% endfor %}
  </oadr:oadrCreateOpt>
</oadr:oadrSignedObject>