{% for name, pinfo in GENERAL_PARAMS.items() %} {% set value = params.get(name, pinfo["default"]) %} {% set enumerate = not (pinfo["values"] == None) %} {% set multiple = "list" in pinfo["type"] %}
{% if pinfo["access"] == False %} {{ value }} {% elif pinfo["type"] == "bool" %} {% elif pinfo["type"] in ("int", "float", "str", "unicode") %} {% if enumerate %} {% else %} {% endif %} {% elif pinfo["type"] in ("list int", "list str") %} {% if pinfo["values"] %} {% else %} {% endif %} {% else %} {% endif %}
{% endfor %}
{% for name, pinfo in COUNTER_PARAMS.items() %} {% endfor %} {% for ct_id, ct in counters.items() %} {% for name, pinfo in COUNTER_PARAMS.items() %} {% set value = ct.get(name, pinfo["default"]) %} {% endfor %} {% endfor %}
{{ pinfo["label"] }}
{% if pinfo["access"] == False %} {{ value }} {% elif pinfo["type"] == "bool" %} {% elif pinfo["type"] in ("int", "float", "str", "unicode") %} {% elif pinfo["type"] in ("list int", "list str") %} {% if pinfo["values"] %} {% else %} {% endif %} {% else %} {% endif %}
{% for name, pinfo in IN_CHANNEL_PARAMS.items() %} {% endfor %} {% for ch_id, ch in in_channels.items() %} {% for name, pinfo in IN_CHANNEL_PARAMS.items() %} {% set value = ch.get(name, pinfo["default"]) %} {% endfor %} {% endfor %}
{{ pinfo["label"] }}
{% if pinfo["access"] == False %} {{ value }} {% elif pinfo["type"] == "bool" %} {% elif pinfo["type"] in ("int", "float", "str", "unicode") %} {% elif pinfo["type"] in ("list int", "list str") %} {% if pinfo["values"] %} {% else %} {% endif %} {% else %} {% endif %}
{% for name, pinfo in OUT_CHANNEL_PARAMS.items() %} {% endfor %} {% for ch_id, ch in out_channels.items() %} {% for name, pinfo in OUT_CHANNEL_PARAMS.items() %} {% set value = ch.get(name, pinfo["default"]) %} {% endfor %} {% endfor %}
{{ pinfo["label"] }}
{% if pinfo["access"] == False %} {{ value }} {% elif pinfo["type"] == "bool" %} {% elif pinfo["type"] in ("int", "float", "str", "unicode") %} {% elif pinfo["type"] in ("list int", "list str") %} {% if pinfo["values"] %} {% else %} {% endif %} {% else %} {% endif %}