This file is indexed.

/usr/lib/python3/dist-packages/pydap/responses/html/templates/macros.html is in python3-pydap 3.2.2+ds1-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
{% macro dispatch(var) %}
<h2>{{ var.id|unquote }}</h2>

{% if var.__class__.__name__ == "GridType" %}
<label for="{{ var.id }}" class="pure-checkbox">
    <input name="{{ var.id }}" id="{{ var.id }}" type="checkbox" value="on">
    Download this variable
</label>

{{ attributes(var.attributes) }}

<fieldset>
    {% for name in var.maps %}
    <div class="pure-control-group">
        <label for="{{ var.id }}[{{ loop.index0 }}]">{{ name }}</label>
        <input
            id="{{ var.id }}[{{ loop.index0 }}]"
            type="text"
            placeholder="0:1:{{ var[name].shape[0]-1 }}">
    </div>
    {% endfor %}
</fieldset>

{% elif var.__class__.__name__ == "BaseType" %}
<label for="{{ var.id }}" class="pure-checkbox">
    <input name="{{ var.id }}" id="{{ var.id }}" type="checkbox" value="on">
    Download this variable
</label>

{{ attributes(var.attributes) }}

{% if var.shape %}
<fieldset>
    <div class="pure-control-group">
        {% for shp in var.shape %}
        <label for="{{ var.id }}[{{ loop.index0 }}]">{{ var.name }}[{{ loop.index0 }}]</label>
        {% if shp > 0 %}
        <input
            id="{{ var.id }}[{{ loop.index0 }}]"
            type="text"
            placeholder="0:1:{{ shp - 1 }}">
        {% else %}
        <input id="{{ var.id }}[{{ loop.index0 }}]" type="text" value="0" readonly>
        {% endif %}
        {% endfor %}
    </div>
</fieldset>
{% endif %}

{% elif var.__class__.__name__ == "SequenceType" %}
{{ attributes(var.attributes) }}

<fieldset>
    Filter where
    <select name="var1_{{ var.id }}" id="var1_{{ var.id }}">
        <option value="--" selected>--</option>
        {% for child in var.children() %}
        <option value="{{ child.id }}">{{ child.name }}</option>
        {% endfor %}
    </select>
    <select name="op_{{ var.id }}" id="op_{{ var.id }}">
        <option value="%3D" selected>=</option>
        <option value="%21%3D">≠</option>
        <option value="%3C">&lt;</option>
        <option value="%3C%3D">≤</option>
        <option value="%3E">&gt;</option>
        <option value="%3E%3D">≥</option>
        <option value="%3D%7E">≈</option>
    </select>
    <input type="text" name="var2_{{ var.id }}" id="var2_{{ var.id }}" value="">
<fieldset>

{% for child in var.children() %}
{{ dispatch(child) }}
{% endfor %}

{% else %}
{{ attributes(var.attributes) }}

<fieldset>
{% for child in var.children() %}
{{ dispatch(child) }}
{% endfor %}
</fieldset>
{% endif %}

{% endmacro %}

{% macro attributes(d) %}
<dl>
    {% for k, v in d.items() %}
    <dt>{{ k }}</dt>
    {% if v is mapping %}
    <dd>
    <div class="nested">
    {{ attributes(v) }}
    </div>
    </dd>
    {% elif v is sequence and not v is string %}
    <dd class="value">{{ v|join(", ") }}</dd>
    {% else %}
    <dd class="value">{{ v }}</dd>
    {% endif %}
    {% endfor %}
</dl>
{% endmacro %}