Skip to content

Commit

Permalink
Deploying to gh-pages from @ c12b572 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
svamaa committed Nov 28, 2023
1 parent f9ff259 commit 610897e
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 18 deletions.
Binary file modified .doctrees/contrib/data_sources/standard/models-main.doctree
Binary file not shown.
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 @@ -321,12 +321,14 @@ <h1>Source code for pyramid_oereb.contrib.data_sources.standard.models.main</h1>
<span class="sd"> id (str): identifier and primary key, used in the database only</span>
<span class="sd"> title (str): The title which the disclaimer item has.</span>
<span class="sd"> content (str): The content which the disclaimer item has.</span>
<span class="sd"> extract_index (int): index to sort the disclaimers in the extract</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">__table_args__</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;schema&#39;</span><span class="p">:</span> <span class="n">app_schema_name</span><span class="p">}</span>
<span class="n">__tablename__</span> <span class="o">=</span> <span class="s1">&#39;disclaimer&#39;</span>
<span class="nb">id</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">String</span><span class="p">,</span> <span class="n">primary_key</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">title</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">JSONType</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">content</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">JSONType</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span></div>
<span class="n">content</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">JSONType</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">extract_index</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">Integer</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span></div>



Expand Down Expand Up @@ -374,12 +376,14 @@ <h1>Source code for pyramid_oereb.contrib.data_sources.standard.models.main</h1>
<span class="sd"> id (str): identifier and primary key, used in the database only</span>
<span class="sd"> title (dict): The title of the general information (multilingual)</span>
<span class="sd"> content (dict): The actual information (multilingual)</span>
<span class="sd"> extract_index (int): index to sort the items in the extract</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">__table_args__</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;schema&#39;</span><span class="p">:</span> <span class="n">app_schema_name</span><span class="p">}</span>
<span class="n">__tablename__</span> <span class="o">=</span> <span class="s1">&#39;general_information&#39;</span>
<span class="nb">id</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">String</span><span class="p">,</span> <span class="n">primary_key</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">title</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">JSONType</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">content</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">JSONType</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span></div>
<span class="n">content</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">JSONType</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">extract_index</span> <span class="o">=</span> <span class="n">Column</span><span class="p">(</span><span class="n">Integer</span><span class="p">,</span> <span class="n">nullable</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span></div>



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ <h1>Source code for pyramid_oereb.contrib.data_sources.standard.sources.disclaim
<span class="k">for</span> <span class="n">result</span> <span class="ow">in</span> <span class="n">results</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">records</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_record_class_</span><span class="p">(</span>
<span class="n">result</span><span class="o">.</span><span class="n">title</span><span class="p">,</span>
<span class="n">result</span><span class="o">.</span><span class="n">content</span>
<span class="n">result</span><span class="o">.</span><span class="n">content</span><span class="p">,</span>
<span class="n">result</span><span class="o">.</span><span class="n">extract_index</span>
<span class="p">))</span>
<span class="k">finally</span><span class="p">:</span>
<span class="n">session</span><span class="o">.</span><span class="n">close</span><span class="p">()</span></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ <h1>Source code for pyramid_oereb.contrib.data_sources.standard.sources.general_
<span class="k">for</span> <span class="n">result</span> <span class="ow">in</span> <span class="n">results</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">records</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_record_class_</span><span class="p">(</span>
<span class="n">result</span><span class="o">.</span><span class="n">title</span><span class="p">,</span>
<span class="n">result</span><span class="o">.</span><span class="n">content</span>
<span class="n">result</span><span class="o">.</span><span class="n">content</span><span class="p">,</span>
<span class="n">result</span><span class="o">.</span><span class="n">extract_index</span>
<span class="p">))</span>
<span class="k">finally</span><span class="p">:</span>
<span class="n">session</span><span class="o">.</span><span class="n">close</span><span class="p">()</span></div>
Expand Down
1 change: 1 addition & 0 deletions _modules/pyramid_oereb/core/readers/disclaimer.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ <h1>Source code for pyramid_oereb.core.readers.disclaimer</h1><div class="highli
<span class="sd"> contains all records delivered by the source.</span>
<span class="sd"> &quot;&quot;&quot;</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="bp">self</span><span class="o">.</span><span class="n">_source_</span><span class="o">.</span><span class="n">records</span><span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">el</span><span class="p">:</span> <span class="p">(</span><span class="nb">getattr</span><span class="p">(</span><span class="n">el</span><span class="p">,</span> <span class="s1">&#39;extract_index&#39;</span><span class="p">)</span> <span class="ow">or</span> <span class="mi">0</span><span class="p">))</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_source_</span><span class="o">.</span><span class="n">records</span></div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ <h1>Source code for pyramid_oereb.core.readers.general_information</h1><div clas
<span class="sd"> contains all records delivered by the source.</span>
<span class="sd"> &quot;&quot;&quot;</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="bp">self</span><span class="o">.</span><span class="n">_source_</span><span class="o">.</span><span class="n">records</span><span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">el</span><span class="p">:</span> <span class="p">(</span><span class="nb">getattr</span><span class="p">(</span><span class="n">el</span><span class="p">,</span> <span class="s1">&#39;extract_index&#39;</span><span class="p">)</span> <span class="ow">or</span> <span class="mi">0</span><span class="p">))</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_source_</span><span class="o">.</span><span class="n">records</span></div>
</div>

Expand Down
5 changes: 3 additions & 2 deletions _modules/pyramid_oereb/core/records/disclaimer.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h1>Source code for pyramid_oereb.core.records.disclaimer</h1><div class="highli
<span class="sd"> &quot;&quot;&quot;</span>
<div class="viewcode-block" id="DisclaimerRecord.__init__">
<a class="viewcode-back" href="../../../../core/records.html#pyramid_oereb.core.records.disclaimer.DisclaimerRecord.__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">title</span><span class="p">,</span> <span class="n">content</span><span class="p">):</span>
<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">title</span><span class="p">,</span> <span class="n">content</span><span class="p">,</span> <span class="n">extract_index</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Attributes:</span>
<span class="sd"> title (dict of unicode): The multilingual disclaimer message label</span>
Expand All @@ -104,7 +104,8 @@ <h1>Source code for pyramid_oereb.core.records.disclaimer</h1><div class="highli
<span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span><span class="s1">&#39;Type of &quot;content&quot; should be &quot;dict&quot;&#39;</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">title</span> <span class="o">=</span> <span class="n">title</span>
<span class="bp">self</span><span class="o">.</span><span class="n">content</span> <span class="o">=</span> <span class="n">content</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">content</span> <span class="o">=</span> <span class="n">content</span>
<span class="bp">self</span><span class="o">.</span><span class="n">extract_index</span> <span class="o">=</span> <span class="n">extract_index</span></div>
</div>

</pre></div>
Expand Down
9 changes: 5 additions & 4 deletions _modules/pyramid_oereb/core/records/general_information.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1>Source code for pyramid_oereb.core.records.general_information</h1><div clas
<span class="sd"> &quot;&quot;&quot;</span>
<div class="viewcode-block" id="GeneralInformationRecord.__init__">
<a class="viewcode-back" href="../../../../core/records.html#pyramid_oereb.core.records.general_information.GeneralInformationRecord.__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">title</span><span class="p">,</span> <span class="n">content</span><span class="p">):</span>
<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">title</span><span class="p">,</span> <span class="n">content</span><span class="p">,</span> <span class="n">extract_index</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Args:</span>
<span class="sd"> title (dict of unicode): The title of the information (multilingual)</span>
Expand All @@ -107,12 +107,13 @@ <h1>Source code for pyramid_oereb.core.records.general_information</h1><div clas
<span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">content</span><span class="p">),</span> <span class="n">content</span><span class="p">))</span>

<span class="bp">self</span><span class="o">.</span><span class="n">title</span> <span class="o">=</span> <span class="n">title</span>
<span class="bp">self</span><span class="o">.</span><span class="n">content</span> <span class="o">=</span> <span class="n">content</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">content</span> <span class="o">=</span> <span class="n">content</span>
<span class="bp">self</span><span class="o">.</span><span class="n">extract_index</span> <span class="o">=</span> <span class="n">extract_index</span></div>


<span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="s1">&#39;&lt;</span><span class="si">{}</span><span class="s1"> -- title: </span><span class="si">{}</span><span class="s1"> content: </span><span class="si">{}</span><span class="s1">&gt;&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__name__</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">title</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">content</span><span class="p">)</span></div>
<span class="k">return</span> <span class="s1">&#39;&lt;</span><span class="si">{}</span><span class="s1"> -- title: </span><span class="si">{}</span><span class="s1"> content: </span><span class="si">{}</span><span class="s1"> extract index: </span><span class="si">{}</span><span class="s1">&gt;&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__name__</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">title</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">content</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">extract_index</span><span class="p">)</span></div>

</pre></div>

Expand Down
22 changes: 22 additions & 0 deletions contrib/data_sources/standard/models-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,17 @@
</dl>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyramid_oereb.contrib.data_sources.standard.models.main.Disclaimer.extract_index">
<span class="sig-name descname"><span class="pre">extract_index</span></span><a class="headerlink" href="#pyramid_oereb.contrib.data_sources.standard.models.main.Disclaimer.extract_index" title="Link to this definition"></a></dt>
<dd><p>index to sort the disclaimers in the extract</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyramid_oereb.contrib.data_sources.standard.models.main.Disclaimer.__init__">
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyramid_oereb.contrib.data_sources.standard.models.main.Disclaimer.__init__" title="Link to this definition"></a></dt>
Expand Down Expand Up @@ -496,6 +507,17 @@
</dl>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyramid_oereb.contrib.data_sources.standard.models.main.GeneralInformation.extract_index">
<span class="sig-name descname"><span class="pre">extract_index</span></span><a class="headerlink" href="#pyramid_oereb.contrib.data_sources.standard.models.main.GeneralInformation.extract_index" title="Link to this definition"></a></dt>
<dd><p>index to sort the items in the extract</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyramid_oereb.contrib.data_sources.standard.models.main.GeneralInformation.__init__">
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyramid_oereb.contrib.data_sources.standard.models.main.GeneralInformation.__init__" title="Link to this definition"></a></dt>
Expand Down
Loading

0 comments on commit 610897e

Please sign in to comment.