Skip to content

Commit

Permalink
chore(refactor): Eliminate cove_ocds.lib package. first_render is not…
Browse files Browse the repository at this point in the history
… used (piwik).
  • Loading branch information
jpmckinney committed Oct 19, 2024
1 parent 4874e2c commit a6238c1
Show file tree
Hide file tree
Showing 10 changed files with 534 additions and 558 deletions.
Empty file removed cove_ocds/lib/__init__.py
Empty file.
94 changes: 0 additions & 94 deletions cove_ocds/lib/exceptions.py

This file was deleted.

41 changes: 0 additions & 41 deletions cove_ocds/lib/ocds_show_extra.py

This file was deleted.

25 changes: 0 additions & 25 deletions cove_ocds/lib/views.py

This file was deleted.

155 changes: 83 additions & 72 deletions cove_ocds/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-10 00:56+0000\n"
"POT-Creation-Date: 2024-10-19 04:51+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"
Expand All @@ -17,54 +17,6 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: cove_ocds/lib/exceptions.py:12
msgid "Unrecognised version of the schema"
msgstr ""

#: cove_ocds/lib/exceptions.py:14 cove_ocds/lib/exceptions.py:34
#: cove_ocds/lib/exceptions.py:57 cove_ocds/lib/exceptions.py:77
#: cove_ocds/views.py:90 cove_ocds/views.py:108 cove_ocds/views.py:126
#: cove_ocds/views.py:237
msgid "Try Again"
msgstr ""

#: cove_ocds/lib/exceptions.py:24 cove_ocds/lib/exceptions.py:47
#, python-format
msgid "%(version)s is not a known schema version"
msgstr ""

#: cove_ocds/lib/exceptions.py:32
msgid "Version format does not comply with the schema"
msgstr ""

#: cove_ocds/lib/exceptions.py:55
msgid "JSON reference error"
msgstr ""

#: cove_ocds/lib/exceptions.py:67
#, python-format
msgid "%(error)s"
msgstr ""

#: cove_ocds/lib/exceptions.py:75 cove_ocds/lib/exceptions.py:92
msgid "Missing OCDS package"
msgstr ""

#: cove_ocds/lib/exceptions.py:80
msgid ""
"We could not detect a package structure at the top-level of your data. OCDS "
"releases and records should be published within a <a href=\"https://standard."
"open-contracting.org/latest/en/schema/release_package/\">release package </"
"a> or <a href=\"https://standard.open-contracting.org/latest/en/schema/"
"record_package/\"> record package</a> to provide important meta-data. For "
"more information, please refer to the <a href=\"https://standard.open-"
"contracting.org/latest/en/primer/releases_and_records/\"> Releases and "
"Records section </a> in the OCDS documentation.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
"span> <strong>Error message:</strong> <em>Missing OCDS package</em>"
msgstr ""

#: cove_ocds/templates/cove_ocds/additional_checks_table.html:7
msgid "Check Description"
msgstr ""
Expand Down Expand Up @@ -1403,30 +1355,18 @@ msgid ""
"reference/#date\">dates in OCDS</a>."
msgstr ""

#: cove_ocds/views.py:50
msgid "Sorry, the page you are looking for is not available"
msgstr ""

#: cove_ocds/views.py:52
msgid "Go to Home page"
msgstr ""

#: cove_ocds/views.py:55
#, python-format
msgid ""
"The data you were hoping to explore no longer exists.\n"
"\n"
"This is because all data supplied to this website is automatically deleted "
"after %s days, and therefore the analysis of that data is no longer "
"available."
#: cove_ocds/util.py:20 cove_ocds/util.py:39 cove_ocds/util.py:57
#: cove_ocds/views.py:112
msgid "Sorry, we can't process that data"
msgstr ""

#: cove_ocds/views.py:88 cove_ocds/views.py:106 cove_ocds/views.py:124
#: cove_ocds/views.py:235
msgid "Sorry, we can't process that data"
#: cove_ocds/util.py:23 cove_ocds/util.py:42 cove_ocds/util.py:59
#: cove_ocds/util.py:85 cove_ocds/util.py:108 cove_ocds/util.py:127
#: cove_ocds/views.py:114 cove_ocds/views.py:149
msgid "Try Again"
msgstr ""

#: cove_ocds/views.py:93
#: cove_ocds/util.py:26
msgid ""
"The file that you uploaded doesn't appear to be well formed JSON. OCDS JSON "
"follows the I-JSON format, which requires UTF-8 encoding. Ensure that your "
Expand All @@ -1436,21 +1376,83 @@ msgid ""
"span> <strong>Error message:</strong> {}"
msgstr ""

#: cove_ocds/views.py:111
#: cove_ocds/util.py:45
msgid ""
"We think you tried to upload a JSON file, but it is not well formed JSON.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
"span> <strong>Error message:</strong> {}"
msgstr ""

#: cove_ocds/views.py:127
#: cove_ocds/util.py:60
msgid ""
"OCDS JSON should have an object as the top level, the JSON you supplied does "
"not."
msgstr ""

#: cove_ocds/views.py:240
#: cove_ocds/util.py:82 cove_ocds/util.py:83
msgid "Missing OCDS package"
msgstr ""

#: cove_ocds/util.py:88
msgid ""
"We could not detect a package structure at the top-level of your data. OCDS "
"releases and records should be published within a <a href=\"https://standard."
"open-contracting.org/latest/en/schema/release_package/\">release package </"
"a> or <a href=\"https://standard.open-contracting.org/latest/en/schema/"
"record_package/\"> record package</a> to provide important meta-data. For "
"more information, please refer to the <a href=\"https://standard.open-"
"contracting.org/latest/en/primer/releases_and_records/\"> Releases and "
"Records section </a> in the OCDS documentation.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
"span> <strong>Error message:</strong> <em>Missing OCDS package</em>"
msgstr ""

#: cove_ocds/util.py:105
msgid "Unrecognised version of the schema"
msgstr ""

#: cove_ocds/util.py:106 cove_ocds/util.py:125
#, python-format
msgid "%(version)s is not a known schema version"
msgstr ""

#: cove_ocds/util.py:111
msgid ""
"We think you tried to run your data against an unrecognised version of the "
"schema.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
"span> <strong>Error message:</strong> <em>{}</em> is not a recognised choice "
"for the schema version"
msgstr ""

#: cove_ocds/util.py:124
msgid "Version format does not comply with the schema"
msgstr ""

#: cove_ocds/util.py:130
msgid ""
"The value for the <em>\"version\"</em> field in your data follows the "
"<em>major.minor.patch</em> pattern but according to the schema the patch "
"digit shouldn't be included (e.g. <em>\"1.1.0\"</em> should appear as "
"<em>\"1.1\"</em> in your data as this tool always uses the latest patch "
"release for a major.minor version).\n"
"\n"
"Please get rid of the patch digit and try again.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
"span> <strong>Error message:</strong> <em>{}</em> format does not comply "
"with the schema"
msgstr ""

#: cove_ocds/util.py:144
#, python-format
msgid "%(version)s (not a string)"
msgstr ""

#: cove_ocds/views.py:118
msgid ""
"The table isn't structured correctly. For example, a JSON Pointer "
"(<code>tender</code>) can't be both a value (<code>tender</code>), a path to "
Expand All @@ -1460,3 +1462,12 @@ msgid ""
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
"span> <strong>Error message:</strong> {}"
msgstr ""

#: cove_ocds/views.py:147
msgid "JSON reference error"
msgstr ""

#: cove_ocds/views.py:159
#, python-format
msgid "%(error)s"
msgstr ""
Loading

0 comments on commit a6238c1

Please sign in to comment.