Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5567e13 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jwkaltz committed Aug 16, 2024
1 parent 326ec0b commit fdf1010
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
Binary file modified .doctrees/core/records.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ <h1>Source code for pyramid_oereb.contrib.data_sources.standard.sources.plr</h1>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;default_language&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;srid&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;proxies&#39;</span><span class="p">),</span>
<span class="n">legends</span><span class="o">=</span><span class="n">legend_entry_records</span>
<span class="n">legends</span><span class="o">=</span><span class="n">legend_entry_records</span><span class="p">,</span>
<span class="c1"># Note: our standard database model does not contain an option to override the verify_certificate</span>
<span class="n">verify_certificate</span><span class="o">=</span><span class="kc">True</span>
<span class="p">)</span>
<span class="k">return</span> <span class="n">view_service_record</span>

Expand Down
6 changes: 4 additions & 2 deletions _modules/pyramid_oereb/core/readers/real_estate.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ <h1>Source code for pyramid_oereb.core.readers.real_estate</h1><div class="highl
<span class="n">plan_for_land_register_config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;layer_opacity&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;default_language&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;srid&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;proxies&#39;</span><span class="p">)</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;proxies&#39;</span><span class="p">),</span>
<span class="n">verify_certificate</span><span class="o">=</span><span class="n">plan_for_land_register_config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;verify_certificate&#39;</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span>
<span class="p">)</span>

<span class="n">plan_for_land_register_main_page_config</span> <span class="o">=</span> <span class="n">Config</span><span class="o">.</span><span class="n">get_plan_for_land_register_main_page_config</span><span class="p">()</span>
Expand All @@ -158,7 +159,8 @@ <h1>Source code for pyramid_oereb.core.readers.real_estate</h1><div class="highl
<span class="n">plan_for_land_register_main_page_config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;layer_opacity&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;default_language&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;srid&#39;</span><span class="p">),</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;proxies&#39;</span><span class="p">)</span>
<span class="n">Config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;proxies&#39;</span><span class="p">),</span>
<span class="n">verify_certificate</span><span class="o">=</span><span class="n">plan_for_land_register_main_page_config</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;verify_certificate&#39;</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span>
<span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">_source_</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="n">params</span><span class="p">,</span> <span class="n">nb_ident</span><span class="o">=</span><span class="n">nb_ident</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="n">number</span><span class="p">,</span> <span class="n">egrid</span><span class="o">=</span><span class="n">egrid</span><span class="p">,</span> <span class="n">geometry</span><span class="o">=</span><span class="n">geometry</span><span class="p">)</span>
Expand Down
9 changes: 5 additions & 4 deletions _modules/pyramid_oereb/core/records/view_service.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h1>Source code for pyramid_oereb.core.records.view_service</h1><div class="high
<div class="viewcode-block" id="ViewServiceRecord.__init__">
<a class="viewcode-back" href="../../../../core/records.html#pyramid_oereb.core.records.view_service.ViewServiceRecord.__init__">[docs]</a>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">reference_wms</span><span class="p">,</span> <span class="n">layer_index</span><span class="p">,</span> <span class="n">layer_opacity</span><span class="p">,</span> <span class="n">default_language</span><span class="p">,</span>
<span class="n">srid</span><span class="p">,</span> <span class="n">proxies</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">legends</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="n">srid</span><span class="p">,</span> <span class="n">proxies</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">legends</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">verify_certificate</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>

<span class="sd"> Args:</span>
Expand All @@ -179,6 +179,7 @@ <h1>Source code for pyramid_oereb.core.records.view_service</h1><div class="high
<span class="sd"> srid (int): The SRID which is used for the WMS.</span>
<span class="sd"> proxies (dict or None): The proxies which may be used</span>
<span class="sd"> legends (list of LegendEntry or None): A list of all relevant legend entries.</span>
<span class="sd"> verify_certificate (bool): indicates whether call to the WMS shall be verified</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="bp">self</span><span class="o">.</span><span class="n">reference_wms</span> <span class="o">=</span> <span class="n">reference_wms</span>
<span class="bp">self</span><span class="o">.</span><span class="n">image</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span> <span class="c1"># multilingual dict with binary map images resulting from calling the wms link</span>
Expand All @@ -193,13 +194,13 @@ <h1>Source code for pyramid_oereb.core.records.view_service</h1><div class="high
<span class="bp">self</span><span class="o">.</span><span class="n">default_language</span> <span class="o">=</span> <span class="n">default_language</span>
<span class="bp">self</span><span class="o">.</span><span class="n">srid</span> <span class="o">=</span> <span class="n">srid</span>
<span class="bp">self</span><span class="o">.</span><span class="n">proxies</span> <span class="o">=</span> <span class="n">proxies</span>

<span class="k">if</span> <span class="n">legends</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">legends</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">for</span> <span class="n">legend</span> <span class="ow">in</span> <span class="n">legends</span><span class="p">:</span>
<span class="k">assert</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">legend</span><span class="o">.</span><span class="n">symbol</span><span class="p">,</span> <span class="n">ImageRecord</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">legends</span> <span class="o">=</span> <span class="n">legends</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">legends</span> <span class="o">=</span> <span class="n">legends</span>
<span class="bp">self</span><span class="o">.</span><span class="n">verify_certificate</span> <span class="o">=</span> <span class="n">verify_certificate</span></div>


<div class="viewcode-block" id="ViewServiceRecord.sanitize_layer_index">
Expand Down Expand Up @@ -350,7 +351,7 @@ <h1>Source code for pyramid_oereb.core.records.view_service</h1><div class="high
<span class="k">if</span> <span class="n">uri_validator</span><span class="p">(</span><span class="n">wms</span><span class="p">):</span>
<span class="n">log</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Downloading image, url: </span><span class="si">{</span><span class="n">wms</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">response</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">wms</span><span class="p">,</span> <span class="n">proxies</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">proxies</span><span class="p">)</span>
<span class="n">response</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">wms</span><span class="p">,</span> <span class="n">proxies</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">proxies</span><span class="p">,</span> <span class="n">verify</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">verify_certificate</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">ex</span><span class="p">:</span>
<span class="n">dedicated_msg</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;An image could not be downloaded. URL was: </span><span class="si">{</span><span class="n">wms</span><span class="si">}</span><span class="s2">, error was </span><span class="si">{</span><span class="n">ex</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="n">log</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="n">dedicated_msg</span><span class="p">)</span>
Expand Down
5 changes: 3 additions & 2 deletions core/records.html
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@
<span id="api-pyramid-oereb-core-records-view-service-viewservicerecord"></span><h2><em>ViewServiceRecord</em><a class="headerlink" href="#viewservicerecord" title="Link to this heading"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="pyramid_oereb.core.records.view_service.ViewServiceRecord">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pyramid_oereb.core.records.view_service.</span></span><span class="sig-name descname"><span class="pre">ViewServiceRecord</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">reference_wms</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_index</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_opacity</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default_language</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">srid</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxies</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">legends</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/pyramid_oereb/core/records/view_service.html#ViewServiceRecord"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyramid_oereb.core.records.view_service.ViewServiceRecord" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pyramid_oereb.core.records.view_service.</span></span><span class="sig-name descname"><span class="pre">ViewServiceRecord</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">reference_wms</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_index</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_opacity</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default_language</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">srid</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxies</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">legends</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">verify_certificate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/pyramid_oereb/core/records/view_service.html#ViewServiceRecord"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyramid_oereb.core.records.view_service.ViewServiceRecord" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>A view service contains a valid WMS URL with a defined set of layers.</p>
<dl class="py attribute">
Expand All @@ -2501,7 +2501,7 @@

<dl class="py method">
<dt class="sig sig-object py" id="pyramid_oereb.core.records.view_service.ViewServiceRecord.__init__">
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">reference_wms</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_index</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_opacity</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default_language</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">srid</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxies</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">legends</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/pyramid_oereb/core/records/view_service.html#ViewServiceRecord.__init__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyramid_oereb.core.records.view_service.ViewServiceRecord.__init__" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">reference_wms</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_index</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer_opacity</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default_language</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">srid</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxies</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">legends</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">verify_certificate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/pyramid_oereb/core/records/view_service.html#ViewServiceRecord.__init__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyramid_oereb.core.records.view_service.ViewServiceRecord.__init__" title="Link to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
Expand All @@ -2512,6 +2512,7 @@
<li><p><strong>srid</strong> (<em>int</em>) – The SRID which is used for the WMS.</p></li>
<li><p><strong>proxies</strong> (<em>dict</em><em> or </em><em>None</em>) – The proxies which may be used</p></li>
<li><p><strong>legends</strong> (<em>list</em><em> of </em><em>LegendEntry</em><em> or </em><em>None</em>) – A list of all relevant legend entries.</p></li>
<li><p><strong>verify_certificate</strong> (<em>bool</em>) – indicates whether call to the WMS shall be verified</p></li>
</ul>
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit fdf1010

Please sign in to comment.