Skip to content

Commit a6238c1

Browse files
committed
chore(refactor): Eliminate cove_ocds.lib package. first_render is not used (piwik).
1 parent 4874e2c commit a6238c1

File tree

10 files changed

+534
-558
lines changed

10 files changed

+534
-558
lines changed

cove_ocds/lib/__init__.py

Whitespace-only changes.

cove_ocds/lib/exceptions.py

Lines changed: 0 additions & 94 deletions
This file was deleted.

cove_ocds/lib/ocds_show_extra.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

cove_ocds/lib/views.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

cove_ocds/locale/en/LC_MESSAGES/django.po

Lines changed: 83 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-10-10 00:56+0000\n"
11+
"POT-Creation-Date: 2024-10-19 04:51+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,54 +17,6 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919

20-
#: cove_ocds/lib/exceptions.py:12
21-
msgid "Unrecognised version of the schema"
22-
msgstr ""
23-
24-
#: cove_ocds/lib/exceptions.py:14 cove_ocds/lib/exceptions.py:34
25-
#: cove_ocds/lib/exceptions.py:57 cove_ocds/lib/exceptions.py:77
26-
#: cove_ocds/views.py:90 cove_ocds/views.py:108 cove_ocds/views.py:126
27-
#: cove_ocds/views.py:237
28-
msgid "Try Again"
29-
msgstr ""
30-
31-
#: cove_ocds/lib/exceptions.py:24 cove_ocds/lib/exceptions.py:47
32-
#, python-format
33-
msgid "%(version)s is not a known schema version"
34-
msgstr ""
35-
36-
#: cove_ocds/lib/exceptions.py:32
37-
msgid "Version format does not comply with the schema"
38-
msgstr ""
39-
40-
#: cove_ocds/lib/exceptions.py:55
41-
msgid "JSON reference error"
42-
msgstr ""
43-
44-
#: cove_ocds/lib/exceptions.py:67
45-
#, python-format
46-
msgid "%(error)s"
47-
msgstr ""
48-
49-
#: cove_ocds/lib/exceptions.py:75 cove_ocds/lib/exceptions.py:92
50-
msgid "Missing OCDS package"
51-
msgstr ""
52-
53-
#: cove_ocds/lib/exceptions.py:80
54-
msgid ""
55-
"We could not detect a package structure at the top-level of your data. OCDS "
56-
"releases and records should be published within a <a href=\"https://standard."
57-
"open-contracting.org/latest/en/schema/release_package/\">release package </"
58-
"a> or <a href=\"https://standard.open-contracting.org/latest/en/schema/"
59-
"record_package/\"> record package</a> to provide important meta-data. For "
60-
"more information, please refer to the <a href=\"https://standard.open-"
61-
"contracting.org/latest/en/primer/releases_and_records/\"> Releases and "
62-
"Records section </a> in the OCDS documentation.\n"
63-
"\n"
64-
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
65-
"span> <strong>Error message:</strong> <em>Missing OCDS package</em>"
66-
msgstr ""
67-
6820
#: cove_ocds/templates/cove_ocds/additional_checks_table.html:7
6921
msgid "Check Description"
7022
msgstr ""
@@ -1403,30 +1355,18 @@ msgid ""
14031355
"reference/#date\">dates in OCDS</a>."
14041356
msgstr ""
14051357

1406-
#: cove_ocds/views.py:50
1407-
msgid "Sorry, the page you are looking for is not available"
1408-
msgstr ""
1409-
1410-
#: cove_ocds/views.py:52
1411-
msgid "Go to Home page"
1412-
msgstr ""
1413-
1414-
#: cove_ocds/views.py:55
1415-
#, python-format
1416-
msgid ""
1417-
"The data you were hoping to explore no longer exists.\n"
1418-
"\n"
1419-
"This is because all data supplied to this website is automatically deleted "
1420-
"after %s days, and therefore the analysis of that data is no longer "
1421-
"available."
1358+
#: cove_ocds/util.py:20 cove_ocds/util.py:39 cove_ocds/util.py:57
1359+
#: cove_ocds/views.py:112
1360+
msgid "Sorry, we can't process that data"
14221361
msgstr ""
14231362

1424-
#: cove_ocds/views.py:88 cove_ocds/views.py:106 cove_ocds/views.py:124
1425-
#: cove_ocds/views.py:235
1426-
msgid "Sorry, we can't process that data"
1363+
#: cove_ocds/util.py:23 cove_ocds/util.py:42 cove_ocds/util.py:59
1364+
#: cove_ocds/util.py:85 cove_ocds/util.py:108 cove_ocds/util.py:127
1365+
#: cove_ocds/views.py:114 cove_ocds/views.py:149
1366+
msgid "Try Again"
14271367
msgstr ""
14281368

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

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

1447-
#: cove_ocds/views.py:127
1387+
#: cove_ocds/util.py:60
14481388
msgid ""
14491389
"OCDS JSON should have an object as the top level, the JSON you supplied does "
14501390
"not."
14511391
msgstr ""
14521392

1453-
#: cove_ocds/views.py:240
1393+
#: cove_ocds/util.py:82 cove_ocds/util.py:83
1394+
msgid "Missing OCDS package"
1395+
msgstr ""
1396+
1397+
#: cove_ocds/util.py:88
1398+
msgid ""
1399+
"We could not detect a package structure at the top-level of your data. OCDS "
1400+
"releases and records should be published within a <a href=\"https://standard."
1401+
"open-contracting.org/latest/en/schema/release_package/\">release package </"
1402+
"a> or <a href=\"https://standard.open-contracting.org/latest/en/schema/"
1403+
"record_package/\"> record package</a> to provide important meta-data. For "
1404+
"more information, please refer to the <a href=\"https://standard.open-"
1405+
"contracting.org/latest/en/primer/releases_and_records/\"> Releases and "
1406+
"Records section </a> in the OCDS documentation.\n"
1407+
"\n"
1408+
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
1409+
"span> <strong>Error message:</strong> <em>Missing OCDS package</em>"
1410+
msgstr ""
1411+
1412+
#: cove_ocds/util.py:105
1413+
msgid "Unrecognised version of the schema"
1414+
msgstr ""
1415+
1416+
#: cove_ocds/util.py:106 cove_ocds/util.py:125
1417+
#, python-format
1418+
msgid "%(version)s is not a known schema version"
1419+
msgstr ""
1420+
1421+
#: cove_ocds/util.py:111
1422+
msgid ""
1423+
"We think you tried to run your data against an unrecognised version of the "
1424+
"schema.\n"
1425+
"\n"
1426+
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
1427+
"span> <strong>Error message:</strong> <em>{}</em> is not a recognised choice "
1428+
"for the schema version"
1429+
msgstr ""
1430+
1431+
#: cove_ocds/util.py:124
1432+
msgid "Version format does not comply with the schema"
1433+
msgstr ""
1434+
1435+
#: cove_ocds/util.py:130
1436+
msgid ""
1437+
"The value for the <em>\"version\"</em> field in your data follows the "
1438+
"<em>major.minor.patch</em> pattern but according to the schema the patch "
1439+
"digit shouldn't be included (e.g. <em>\"1.1.0\"</em> should appear as "
1440+
"<em>\"1.1\"</em> in your data as this tool always uses the latest patch "
1441+
"release for a major.minor version).\n"
1442+
"\n"
1443+
"Please get rid of the patch digit and try again.\n"
1444+
"\n"
1445+
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
1446+
"span> <strong>Error message:</strong> <em>{}</em> format does not comply "
1447+
"with the schema"
1448+
msgstr ""
1449+
1450+
#: cove_ocds/util.py:144
1451+
#, python-format
1452+
msgid "%(version)s (not a string)"
1453+
msgstr ""
1454+
1455+
#: cove_ocds/views.py:118
14541456
msgid ""
14551457
"The table isn't structured correctly. For example, a JSON Pointer "
14561458
"(<code>tender</code>) can't be both a value (<code>tender</code>), a path to "
@@ -1460,3 +1462,12 @@ msgid ""
14601462
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
14611463
"span> <strong>Error message:</strong> {}"
14621464
msgstr ""
1465+
1466+
#: cove_ocds/views.py:147
1467+
msgid "JSON reference error"
1468+
msgstr ""
1469+
1470+
#: cove_ocds/views.py:159
1471+
#, python-format
1472+
msgid "%(error)s"
1473+
msgstr ""

0 commit comments

Comments
 (0)