-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add manage unicode interface and fetch it from database instead of se…
…ttings
- Loading branch information
1 parent
4b58cfe
commit 45e2d28
Showing
27 changed files
with
446 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,6 @@ src/lgr_web/static/ | |
|
||
# Helm secret directory | ||
helm/secrets | ||
|
||
# SQLite dev db | ||
src/lgr_web/dev.db |
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
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
15 changes: 15 additions & 0 deletions
15
src/lgr_advanced/lgr_editor/tests/test_meta_data_unicode_version.py
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,15 @@ | ||
from lgr_advanced.lgr_editor.forms import MetadataForm | ||
from lgr_models.tests.test_unicode_version import TestUnicodeVersion | ||
|
||
|
||
class TestMetaDataUnicodeVersion(TestUnicodeVersion): | ||
|
||
def test_unicode_versions(self): | ||
""" | ||
Verify the list displayed is unfiltered and contains all supported versions | ||
""" | ||
self.a_unicode_version.activated = True | ||
self.a_unicode_version.save() | ||
metadata_form = MetadataForm(additional_repertoires=[], disabled=False) | ||
self.assertSetEqual(set(metadata_form.fields['unicode_version'].choices), | ||
{(v, v) for v in self.versions_supported}) |
Empty file.
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,12 @@ | ||
from lgr_models.tests.test_unicode_version import TestUnicodeVersion | ||
|
||
|
||
class TestLabelFormsView(TestUnicodeVersion): | ||
|
||
def test_unicode_versions(self): | ||
self.login() | ||
|
||
self.a_unicode_version.activated = True | ||
self.a_unicode_version.save() | ||
response = self.client.get('/a/label_forms/') | ||
self.assertEqual(response.context['option']['label'], self.a_unicode_version.version) |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-08-11 13:27+0000\n" | ||
"POT-Creation-Date: 2021-08-30 15:00+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -44,10 +44,13 @@ msgstr "" | |
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/_idn_table_review_admin_base.html:4 | ||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/_idn_table_review_admin_base.html:12 | ||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_version_detail.html:4 | ||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_version_detail.html:12 | ||
msgid "IDN review tool admin" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/_idn_table_review_admin_base.html:7 | ||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_version_detail.html:7 | ||
msgid "Switch mode" | ||
msgstr "" | ||
|
||
|
@@ -63,6 +66,10 @@ msgstr "" | |
msgid "User management" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/_idn_table_review_admin_base.html:27 | ||
msgid "Unicode Versions" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/ref_lgr.html:7 | ||
msgid "Existing Reference LGRs" | ||
msgstr "" | ||
|
@@ -113,6 +120,30 @@ msgstr "" | |
msgid "New Root Zone LGR" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_version_detail.html:16 | ||
msgid "Edit Unicode Version" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_version_detail.html:21 | ||
msgid "Save" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_versions.html:7 | ||
msgid "Unicode Versions List" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_versions.html:12 | ||
msgid "Version" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_versions.html:13 | ||
msgid "Activated" | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/unicode_versions.html:40 | ||
msgid "No unicode version defined." | ||
msgstr "" | ||
|
||
#: src/lgr_manage/templates/lgr_idn_table_review_admin/user_management.html:7 | ||
msgid "Admin user" | ||
msgstr "" | ||
|
Oops, something went wrong.