-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplified DTR taxonomy retrival, DTR UI recursion breaks for unknown…
… reason, push for alpha deployment
- Loading branch information
1 parent
87f8152
commit 0d6f174
Showing
21 changed files
with
152 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
{% extends 'UI/_.html' %} | ||
{% block content %} | ||
<h2> PLACEHOLDER </h2> | ||
<h3> PLUGGABLE DTR UI TBD Q4 2024 </h3> | ||
<div id="content"> | ||
<h2> DOG Data Type Registry plugin</h2> | ||
<h3> DOG subservice allowing MIMEtype taxonomy expansion based on <a href="">Data Type Registry</a></h3> | ||
|
||
Type a MIMEtype (e.g. `application/json`) into the box | ||
|
||
{% block mimetype %} | ||
{% if mimetype_form %} | ||
{% include 'UI/_form_mimetype.html' with form=mimetype_form %} | ||
{% endif %} | ||
{% endblock mimetype %} | ||
|
||
{% block result %} | ||
{% endblock result %} | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{% extends 'UI/_content.html' %} | ||
{% load dogui_extras %} | ||
{% extends 'UI/_dtr.html' %} | ||
{{ taxonomies }} | ||
{% block result %} | ||
<ul> | ||
{% with node=taxonomy_tree.node template_name="UI/tree/_tree_node_view.html" %} | ||
{% include "UI/tree/_tree_node_view.html" %} | ||
{% endwith %} | ||
</ul> | ||
{% endblock result %} | ||
{% for input_type, taxonomy in taxonomies.items %} | ||
<ul> | ||
{{ taxonomy }} | ||
{% if taxonomy %} | ||
{% include 'UI/tree/_tree_node_view.html' with node=taxonomy %} | ||
{% endif %} | ||
</ul> | ||
{% endfor %} | ||
{% endblock result %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'UI/_expanddatatype.html' %} | ||
{% block node %} | ||
{% for input_type_name, data in node.items %} | ||
{% if data.children %} | ||
{% for child in data.children %} | ||
|
||
<li> | ||
{% with node=child template_name="UI/tree/_tree_node_view.html" %} | ||
{% include template_name %} | ||
{% endwith %} | ||
</li> | ||
|
||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endblock node %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
from django.conf import settings | ||
|
||
|
||
import re | ||
|
||
def version(request): | ||
# pylint: disable=unused-argument | ||
return {'VERSION': settings.VERSION} | ||
version = settings.VERSION | ||
alpha_regex = re.compile(r"[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+") | ||
beta_regex = re.compile(r"[0-9]+\.[0-9]+\.[0-9]+") | ||
if alpha_regex.match(version): | ||
return {"VERSION": version, "INSTANCE": "ALPHA"} | ||
elif beta_regex.match(version): | ||
return {'VERSION': version, "INSTANCE": "BETA"} |
Oops, something went wrong.