Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 18, 2023
1 parent d106664 commit 5da2e2b
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 133 deletions.
2 changes: 0 additions & 2 deletions _modules/apis_core/apis_entities/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ <h1>Source code for apis_core.apis_entities.models</h1><div class="highlight"><p

<span class="c1"># TODO: check if these imports can be put to top of module without</span>
<span class="c1"># causing circular import issues.</span>
<span class="kn">from</span> <span class="nn">apis_core.apis_vocabularies.models</span> <span class="kn">import</span> <span class="n">LabelType</span>
<span class="kn">from</span> <span class="nn">apis_core.apis_metainfo.models</span> <span class="kn">import</span> <span class="n">Uri</span>

<span class="n">e_a</span> <span class="o">=</span> <span class="nb">type</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span>
Expand All @@ -348,7 +347,6 @@ <h1>Source code for apis_core.apis_entities.models</h1><div class="highlight"><p
<span class="n">e_b</span> <span class="o">=</span> <span class="nb">type</span><span class="p">(</span><span class="n">ent</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span>
<span class="k">if</span> <span class="n">e_a</span> <span class="o">!=</span> <span class="n">e_b</span><span class="p">:</span>
<span class="k">continue</span>
<span class="n">lt</span><span class="p">,</span> <span class="n">created</span> <span class="o">=</span> <span class="n">LabelType</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">get_or_create</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s2">&quot;Legacy name (merge)&quot;</span><span class="p">)</span>
<span class="c1"># TODO: if collections are removed, remove this as well</span>
<span class="k">if</span> <span class="nb">hasattr</span><span class="p">(</span><span class="n">ent</span><span class="p">,</span> <span class="s2">&quot;collection&quot;</span><span class="p">):</span>
<span class="n">col_list</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">collection</span><span class="o">.</span><span class="n">all</span><span class="p">())</span>
Expand Down
10 changes: 0 additions & 10 deletions _modules/apis_core/apis_vocabularies/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,6 @@ <h1>Source code for apis_core.apis_vocabularies.models</h1><div class="highlight
<span class="c1"># &quot;&quot;&quot;Holds controlled vocabularies about event-types&quot;&quot;&quot;</span>
<span class="c1"># pass</span>

<span class="c1"># TODO RDF: Remove this</span>
<div class="viewcode-block" id="LabelType">
<a class="viewcode-back" href="../../../modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.LabelType">[docs]</a>
<span class="nd">@reversion</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="n">follow</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;vocabsbaseclass_ptr&quot;</span><span class="p">])</span>
<span class="k">class</span> <span class="nc">LabelType</span><span class="p">(</span><span class="n">VocabsBaseClass</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Holds controlled vocabularies about label-types&quot;&quot;&quot;</span>

<span class="k">pass</span></div>



<span class="c1"># TODO RDF: Remove this</span>
<div class="viewcode-block" id="CollectionType">
Expand Down
11 changes: 0 additions & 11 deletions _modules/apis_core/apis_vocabularies/serializers.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ <h1>Source code for apis_core.apis_vocabularies.serializers</h1><div class="high
<span class="n">CollectionType</span><span class="p">,</span>
<span class="n">VocabsBaseClass</span><span class="p">,</span>
<span class="n">VocabNames</span><span class="p">,</span>
<span class="n">LabelType</span><span class="p">,</span>
<span class="p">)</span>


Expand Down Expand Up @@ -313,16 +312,6 @@ <h1>Source code for apis_core.apis_vocabularies.serializers</h1><div class="high
<span class="c1"># model = WorkType</span>
<span class="c1">#</span>
<span class="c1">#</span>
<div class="viewcode-block" id="LabelTypeSerializer">
<a class="viewcode-back" href="../../../modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.LabelTypeSerializer">[docs]</a>
<span class="k">class</span> <span class="nc">LabelTypeSerializer</span><span class="p">(</span><span class="n">serializers</span><span class="o">.</span><span class="n">ModelSerializer</span><span class="p">):</span>
<div class="viewcode-block" id="LabelTypeSerializer.Meta">
<a class="viewcode-back" href="../../../modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.LabelTypeSerializer.Meta">[docs]</a>
<span class="k">class</span> <span class="nc">Meta</span><span class="p">:</span>
<span class="n">fields</span> <span class="o">=</span> <span class="p">(</span><span class="s2">&quot;id&quot;</span><span class="p">,</span> <span class="s2">&quot;name&quot;</span><span class="p">)</span>
<span class="n">model</span> <span class="o">=</span> <span class="n">LabelType</span></div>
</div>

</pre></div>

</div>
Expand Down
1 change: 0 additions & 1 deletion _modules/apis_core/utils/test_caching.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ <h1>Source code for apis_core.utils.test_caching</h1><div class="highlight"><pre
<span class="p">],</span>
<span class="s2">&quot;apis_vocabularies&quot;</span><span class="p">:</span> <span class="p">[</span>
<span class="s2">&quot;CollectionType&quot;</span><span class="p">,</span>
<span class="s2">&quot;LabelType&quot;</span><span class="p">,</span>
<span class="s2">&quot;TextType&quot;</span><span class="p">,</span>
<span class="s2">&quot;VocabNames&quot;</span><span class="p">,</span>
<span class="s2">&quot;VocabsBaseClass&quot;</span><span class="p">,</span>
Expand Down
24 changes: 2 additions & 22 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,6 @@ <h2 id="F">F</h2>
<li><a href="modules/apis_core.apis_relations.html#apis_core.apis_relations.tables.TripleTable.Meta.fields">(apis_core.apis_relations.tables.TripleTable.Meta attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.CollectionTypeSerializer.Meta.fields">(apis_core.apis_vocabularies.serializers.CollectionTypeSerializer.Meta attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.LabelTypeSerializer.Meta.fields">(apis_core.apis_vocabularies.serializers.LabelTypeSerializer.Meta attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.TextTypeSerializer.Meta.fields">(apis_core.apis_vocabularies.serializers.TextTypeSerializer.Meta attribute)</a>
</li>
Expand Down Expand Up @@ -1543,29 +1541,17 @@ <h2 id="L">L</h2>
<li><a href="modules/apis_core.html#apis_core.api_routers.LabelSerializer">LabelSerializer (class in apis_core.api_routers)</a>
</li>
<li><a href="modules/apis_core.html#apis_core.api_routers.LabelSerializer.Meta">LabelSerializer.Meta (class in apis_core.api_routers)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.VocabsBaseClass.labeltype">labeltype (apis_core.apis_vocabularies.models.VocabsBaseClass attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.LabelType">LabelType (class in apis_core.apis_vocabularies.models)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.LabelType.DoesNotExist">LabelType.DoesNotExist</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.LabelType.MultipleObjectsReturned">LabelType.MultipleObjectsReturned</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.LabelTypeSerializer">LabelTypeSerializer (class in apis_core.apis_vocabularies.serializers)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.LabelTypeSerializer.Meta">LabelTypeSerializer.Meta (class in apis_core.apis_vocabularies.serializers)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.TextType.lang">lang (apis_core.apis_vocabularies.models.TextType attribute)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="modules/apis_core.apis_metainfo.html#apis_core.apis_metainfo.viewsets.UriToObjectViewSet.list">list() (apis_core.apis_metainfo.viewsets.UriToObjectViewSet method)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.admin.VocabsRelationAdmin.list_display">list_display (apis_core.apis_vocabularies.admin.VocabsRelationAdmin attribute)</a>
</li>
<li><a href="modules/apis_core.utils.html#apis_core.utils.settings.list_links_to_edit">list_links_to_edit() (in module apis_core.utils.settings)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="modules/apis_core.apis_entities.html#apis_core.apis_entities.fields.ListSelect2">ListSelect2 (class in apis_core.apis_entities.fields)</a>
</li>
<li><a href="modules/apis_core.apis_relations.html#apis_core.apis_relations.forms2.GenericTripleForm.load_remaining_data_from_input">load_remaining_data_from_input() (apis_core.apis_relations.forms2.GenericTripleForm method)</a>
Expand Down Expand Up @@ -1712,8 +1698,6 @@ <h2 id="M">M</h2>
<li><a href="modules/apis_core.apis_relations.html#apis_core.apis_relations.tables.TripleTable.Meta.model">(apis_core.apis_relations.tables.TripleTable.Meta attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.CollectionTypeSerializer.Meta.model">(apis_core.apis_vocabularies.serializers.CollectionTypeSerializer.Meta attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.LabelTypeSerializer.Meta.model">(apis_core.apis_vocabularies.serializers.LabelTypeSerializer.Meta attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.serializers.TextTypeSerializer.Meta.model">(apis_core.apis_vocabularies.serializers.TextTypeSerializer.Meta attribute)</a>
</li>
Expand Down Expand Up @@ -2585,8 +2569,6 @@ <h2 id="V">V</h2>

<ul>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.CollectionType.vocabsbaseclass_ptr">(apis_core.apis_vocabularies.models.CollectionType attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.LabelType.vocabsbaseclass_ptr">(apis_core.apis_vocabularies.models.LabelType attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.TextType.vocabsbaseclass_ptr">(apis_core.apis_vocabularies.models.TextType attribute)</a>
</li>
Expand All @@ -2597,8 +2579,6 @@ <h2 id="V">V</h2>

<ul>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.CollectionType.vocabsbaseclass_ptr_id">(apis_core.apis_vocabularies.models.CollectionType attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.LabelType.vocabsbaseclass_ptr_id">(apis_core.apis_vocabularies.models.LabelType attribute)</a>
</li>
<li><a href="modules/apis_core.apis_vocabularies.html#apis_core.apis_vocabularies.models.TextType.vocabsbaseclass_ptr_id">(apis_core.apis_vocabularies.models.TextType attribute)</a>
</li>
Expand Down
Loading

0 comments on commit 5da2e2b

Please sign in to comment.