udata 11.1.2.dev3__py3-none-any.whl → 11.1.2.dev5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of udata might be problematic. Click here for more details.

Files changed (27) hide show
  1. udata/app.py +50 -1
  2. udata/core/dataset/api.py +1 -1
  3. udata/core/site/models.py +9 -0
  4. udata/static/chunks/{10.471164b2a9fe15614797.js → 10.8ca60413647062717b1e.js} +3 -3
  5. udata/static/chunks/{10.471164b2a9fe15614797.js.map → 10.8ca60413647062717b1e.js.map} +1 -1
  6. udata/static/chunks/{11.55ab79044cda0271b595.js → 11.0f04e49a40a0a381bcce.js} +3 -3
  7. udata/static/chunks/{11.55ab79044cda0271b595.js.map → 11.0f04e49a40a0a381bcce.js.map} +1 -1
  8. udata/static/chunks/{19.f03a102365af4315f9db.js → 19.8da42e8359d72afc2618.js} +3 -3
  9. udata/static/chunks/{19.f03a102365af4315f9db.js.map → 19.8da42e8359d72afc2618.js.map} +1 -1
  10. udata/static/chunks/{8.b58fcd977fcaf3415571.js → 8.494b003a94383b142c18.js} +2 -2
  11. udata/static/chunks/{8.b58fcd977fcaf3415571.js.map → 8.494b003a94383b142c18.js.map} +1 -1
  12. udata/static/chunks/{9.07515e5187f475bce828.js → 9.033d7e190ca9e226a5d0.js} +3 -3
  13. udata/static/chunks/{9.07515e5187f475bce828.js.map → 9.033d7e190ca9e226a5d0.js.map} +1 -1
  14. udata/static/common.js +1 -1
  15. udata/static/common.js.map +1 -1
  16. udata/templates/404.html +43 -0
  17. udata/tests/api/test_datasets_api.py +11 -0
  18. udata/tests/frontend/test_error_handlers.py +77 -0
  19. udata/tests/site/test_site_api.py +1 -0
  20. udata/translations/udata.pot +133 -77
  21. udata/uris.py +7 -1
  22. {udata-11.1.2.dev3.dist-info → udata-11.1.2.dev5.dist-info}/METADATA +1 -1
  23. {udata-11.1.2.dev3.dist-info → udata-11.1.2.dev5.dist-info}/RECORD +27 -25
  24. {udata-11.1.2.dev3.dist-info → udata-11.1.2.dev5.dist-info}/WHEEL +0 -0
  25. {udata-11.1.2.dev3.dist-info → udata-11.1.2.dev5.dist-info}/entry_points.txt +0 -0
  26. {udata-11.1.2.dev3.dist-info → udata-11.1.2.dev5.dist-info}/licenses/LICENSE +0 -0
  27. {udata-11.1.2.dev3.dist-info → udata-11.1.2.dev5.dist-info}/top_level.txt +0 -0
@@ -1,15 +1,15 @@
1
- # English translations for udata.
1
+ # English translations for PROJECT.
2
2
  # Copyright (C) 2025 Open Data Team
3
- # This file is distributed under the same license as the udata project.
3
+ # This file is distributed under the same license as the PROJECT project.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: udata 10.8.3.dev0\n"
9
+ "Project-Id-Version: PROJECT VERSION\n"
10
10
  "Report-Msgid-Bugs-To: i18n@opendata.team\n"
11
- "POT-Creation-Date: 2025-08-20 12:14+0200\n"
12
- "PO-Revision-Date: 2025-08-20 12:14+0200\n"
11
+ "POT-Creation-Date: 2025-10-06 17:05+0200\n"
12
+ "PO-Revision-Date: 2025-10-06 17:05+0200\n"
13
13
  "Last-Translator: Open Data Team <i18n@opendata.team>\n"
14
14
  "Language: en\n"
15
15
  "Language-Team: Open Data Team <i18n@opendata.team>\n"
@@ -43,7 +43,7 @@ msgstr ""
43
43
  msgid "Password reset instructions"
44
44
  msgstr ""
45
45
 
46
- #: udata/settings.py:513
46
+ #: udata/settings.py:520
47
47
  msgid "This dataset has been archived"
48
48
  msgstr ""
49
49
 
@@ -52,41 +52,41 @@ msgstr ""
52
52
  msgid "Invalid URL \"{url}\": {reason}"
53
53
  msgstr ""
54
54
 
55
- #: udata/tests/api/test_datasets_api.py:1125 udata/tests/test_model.py:403
55
+ #: udata/tests/api/test_datasets_api.py:1126 udata/tests/test_model.py:403
56
56
  #: udata/uris.py:57
57
57
  #, python-brace-format
58
58
  msgid "Invalid URL \"{url}\""
59
59
  msgstr ""
60
60
 
61
- #: udata/uris.py:125
61
+ #: udata/uris.py:131
62
62
  #, python-brace-format
63
63
  msgid "Invalid scheme {0}, allowed schemes: {1}"
64
64
  msgstr ""
65
65
 
66
- #: udata/uris.py:128
66
+ #: udata/uris.py:134
67
67
  msgid "Credentials in URL are not allowed"
68
68
  msgstr ""
69
69
 
70
- #: udata/uris.py:132
70
+ #: udata/uris.py:138
71
71
  #, python-brace-format
72
72
  msgid "Invalid TLD {0}"
73
73
  msgstr ""
74
74
 
75
- #: udata/uris.py:141
75
+ #: udata/uris.py:147
76
76
  #, python-brace-format
77
77
  msgid "{0} is a multicast IP"
78
78
  msgstr ""
79
79
 
80
- #: udata/uris.py:143
80
+ #: udata/uris.py:149
81
81
  #, python-brace-format
82
82
  msgid "{0} is a mask IP"
83
83
  msgstr ""
84
84
 
85
- #: udata/uris.py:147
85
+ #: udata/uris.py:153
86
86
  msgid "is a local URL"
87
87
  msgstr ""
88
88
 
89
- #: udata/tests/test_model.py:421 udata/uris.py:154
89
+ #: udata/tests/test_model.py:421 udata/uris.py:160
90
90
  msgid "is a private URL"
91
91
  msgstr ""
92
92
 
@@ -196,8 +196,8 @@ msgstr ""
196
196
  msgid "Your udata instance is ready!"
197
197
  msgstr ""
198
198
 
199
- #: udata/core/owned.py:64 udata/forms/fields.py:752
200
- #: udata/tests/api/test_dataservices_api.py:540
199
+ #: udata/core/owned.py:64 udata/forms/fields.py:759
200
+ #: udata/tests/api/test_dataservices_api.py:550
201
201
  msgid "You can only set yourself as owner"
202
202
  msgstr ""
203
203
 
@@ -205,8 +205,8 @@ msgstr ""
205
205
  msgid "Unknown organization"
206
206
  msgstr ""
207
207
 
208
- #: udata/core/owned.py:77 udata/forms/fields.py:784
209
- #: udata/tests/api/test_dataservices_api.py:553
208
+ #: udata/core/owned.py:77 udata/forms/fields.py:791
209
+ #: udata/tests/api/test_dataservices_api.py:563
210
210
  msgid "Permission denied for this organization"
211
211
  msgstr ""
212
212
 
@@ -224,7 +224,7 @@ msgstr ""
224
224
 
225
225
  #: udata/core/contact_point/forms.py:12 udata/core/jobs/forms.py:27
226
226
  #: udata/core/organization/forms.py:46 udata/core/post/forms.py:15
227
- #: udata/core/topic/forms.py:16 udata/harvest/forms.py:78
227
+ #: udata/core/topic/forms.py:37 udata/harvest/forms.py:78
228
228
  #: udata/templates/api/admin.html:10
229
229
  msgid "Name"
230
230
  msgstr ""
@@ -243,7 +243,7 @@ msgstr ""
243
243
 
244
244
  #: udata/core/contact_point/forms.py:20 udata/core/dataset/forms.py:117
245
245
  #: udata/core/dataset/forms.py:185 udata/core/discussions/forms.py:13
246
- #: udata/core/discussions/forms.py:29 udata/core/topic/forms.py:14
246
+ #: udata/core/discussions/forms.py:29 udata/core/topic/forms.py:35
247
247
  #: udata/harvest/forms.py:87
248
248
  msgid "Publish as"
249
249
  msgstr ""
@@ -268,65 +268,65 @@ msgstr ""
268
268
  msgid "At least an email or a contact form is required for a contact point"
269
269
  msgstr ""
270
270
 
271
- #: udata/core/dataservices/activities.py:21
271
+ #: udata/core/dataservices/activities.py:23
272
272
  msgid "created a dataservice"
273
273
  msgstr ""
274
274
 
275
- #: udata/core/dataservices/activities.py:27
275
+ #: udata/core/dataservices/activities.py:29
276
276
  msgid "updated a dataservice"
277
277
  msgstr ""
278
278
 
279
- #: udata/core/dataservices/activities.py:34
279
+ #: udata/core/dataservices/activities.py:36
280
280
  msgid "deleted a dataservice"
281
281
  msgstr ""
282
282
 
283
- #: udata/core/dataservices/api.py:62
283
+ #: udata/core/dataservices/api.py:63
284
284
  msgid "Latest APIs"
285
285
  msgstr ""
286
286
 
287
- #: udata/core/dataservices/models.py:129
287
+ #: udata/core/dataservices/models.py:132
288
288
  msgid "You can only set one condition for a given access audience role"
289
289
  msgstr ""
290
290
 
291
- #: udata/core/dataservices/models.py:159
291
+ #: udata/core/dataservices/models.py:182
292
292
  msgid "dataservice"
293
293
  msgstr ""
294
294
 
295
- #: udata/core/dataservices/models.py:241 udata/core/dataset/models.py:593
295
+ #: udata/core/dataservices/models.py:271 udata/core/dataset/models.py:605
296
296
  #: udata/mongo/datetime_fields.py:60
297
297
  msgid "Creation date"
298
298
  msgstr ""
299
299
 
300
- #: udata/core/dataservices/models.py:247 udata/core/dataset/models.py:598
300
+ #: udata/core/dataservices/models.py:277 udata/core/dataset/models.py:610
301
301
  #: udata/mongo/datetime_fields.py:66
302
302
  msgid "Last modification date"
303
303
  msgstr ""
304
304
 
305
- #: udata/core/dataset/activities.py:22
305
+ #: udata/core/dataset/activities.py:24
306
306
  msgid "created a dataset"
307
307
  msgstr ""
308
308
 
309
- #: udata/core/dataset/activities.py:28
309
+ #: udata/core/dataset/activities.py:30
310
310
  msgid "updated a dataset"
311
311
  msgstr ""
312
312
 
313
- #: udata/core/dataset/activities.py:35
313
+ #: udata/core/dataset/activities.py:37
314
314
  msgid "deleted a dataset"
315
315
  msgstr ""
316
316
 
317
- #: udata/core/dataset/activities.py:41
317
+ #: udata/core/dataset/activities.py:43
318
318
  msgid "added a resource to a dataset"
319
319
  msgstr ""
320
320
 
321
- #: udata/core/dataset/activities.py:47
321
+ #: udata/core/dataset/activities.py:49
322
322
  msgid "updated a resource"
323
323
  msgstr ""
324
324
 
325
- #: udata/core/dataset/activities.py:53
325
+ #: udata/core/dataset/activities.py:55
326
326
  msgid "removed a resource from a dataset"
327
327
  msgstr ""
328
328
 
329
- #: udata/core/dataset/api.py:321
329
+ #: udata/core/dataset/api.py:329
330
330
  msgid "Latest datasets"
331
331
  msgstr ""
332
332
 
@@ -480,7 +480,8 @@ msgstr ""
480
480
 
481
481
  #: udata/core/dataset/forms.py:66 udata/core/dataset/forms.py:147
482
482
  #: udata/core/discussions/forms.py:14 udata/core/discussions/forms.py:25
483
- #: udata/core/site/forms.py:12 udata/templates/mail/discussion_closed.html:26
483
+ #: udata/core/site/forms.py:12 udata/core/topic/forms.py:13
484
+ #: udata/templates/mail/discussion_closed.html:26
484
485
  #: udata/templates/mail/new_discussion.html:25
485
486
  #: udata/templates/mail/new_discussion_comment.html:26
486
487
  msgid "Title"
@@ -488,7 +489,8 @@ msgstr ""
488
489
 
489
490
  #: udata/core/dataset/forms.py:69 udata/core/dataset/forms.py:151
490
491
  #: udata/core/jobs/forms.py:28 udata/core/organization/forms.py:50
491
- #: udata/core/topic/forms.py:17 udata/harvest/forms.py:80
492
+ #: udata/core/topic/forms.py:14 udata/core/topic/forms.py:38
493
+ #: udata/harvest/forms.py:80
492
494
  msgid "Description"
493
495
  msgstr ""
494
496
 
@@ -536,7 +538,7 @@ msgstr ""
536
538
  msgid "Related dataset"
537
539
  msgstr ""
538
540
 
539
- #: udata/core/dataset/forms.py:139 udata/tests/api/test_datasets_api.py:1037
541
+ #: udata/core/dataset/forms.py:139 udata/tests/api/test_datasets_api.py:1038
540
542
  msgid "Wrong contact point id or contact point ownership mismatch"
541
543
  msgstr ""
542
544
 
@@ -585,16 +587,17 @@ msgid "The period covered by the data"
585
587
  msgstr ""
586
588
 
587
589
  #: udata/core/dataset/forms.py:176 udata/core/spatial/forms.py:85
588
- #: udata/core/topic/forms.py:23
590
+ #: udata/core/topic/forms.py:86
589
591
  msgid "Spatial coverage"
590
592
  msgstr ""
591
593
 
592
- #: udata/core/dataset/forms.py:176 udata/core/topic/forms.py:23
594
+ #: udata/core/dataset/forms.py:176 udata/core/topic/forms.py:86
593
595
  msgid "The geographical area covered by the data."
594
596
  msgstr ""
595
597
 
596
598
  #: udata/core/dataset/forms.py:178 udata/core/post/forms.py:26
597
- #: udata/core/site/forms.py:13 udata/core/topic/forms.py:26
599
+ #: udata/core/site/forms.py:13 udata/core/topic/forms.py:15
600
+ #: udata/core/topic/forms.py:89
598
601
  msgid "Tags"
599
602
  msgstr ""
600
603
 
@@ -602,7 +605,7 @@ msgstr ""
602
605
  msgid "Some taxonomy keywords"
603
606
  msgstr ""
604
607
 
605
- #: udata/core/dataset/forms.py:180 udata/core/topic/forms.py:27
608
+ #: udata/core/dataset/forms.py:180 udata/core/topic/forms.py:90
606
609
  msgid "Private"
607
610
  msgstr ""
608
611
 
@@ -610,52 +613,72 @@ msgstr ""
610
613
  msgid "Restrict the dataset visibility to you or your organization only."
611
614
  msgstr ""
612
615
 
613
- #: udata/core/dataset/models.py:63
616
+ #: udata/core/dataset/models.py:68
614
617
  msgid "Pivotal data"
615
618
  msgstr ""
616
619
 
617
- #: udata/core/dataset/models.py:142
620
+ #: udata/core/dataset/models.py:69
621
+ msgid "Reference data public service"
622
+ msgstr ""
623
+
624
+ #: udata/core/dataset/models.py:70
625
+ msgid "Inspire"
626
+ msgstr ""
627
+
628
+ #: udata/core/dataset/models.py:71
629
+ msgid "High value datasets"
630
+ msgstr ""
631
+
632
+ #: udata/core/dataset/models.py:72
633
+ msgid "Certified statistic series"
634
+ msgstr ""
635
+
636
+ #: udata/core/dataset/models.py:73
637
+ msgid "Statistical series of general interest"
638
+ msgstr ""
639
+
640
+ #: udata/core/dataset/models.py:153
618
641
  msgid "A schema must contains a name or an URL when a version is provided."
619
642
  msgstr ""
620
643
 
621
- #: udata/core/dataset/models.py:174 udata/tests/api/test_datasets_api.py:1133
622
- #: udata/tests/api/test_datasets_api.py:1144
644
+ #: udata/core/dataset/models.py:185 udata/tests/api/test_datasets_api.py:1134
645
+ #: udata/tests/api/test_datasets_api.py:1145
623
646
  #, python-brace-format
624
647
  msgid "Schema name \"{schema}\" is not an allowed value. Allowed values: {values}"
625
648
  msgstr ""
626
649
 
627
- #: udata/core/dataset/models.py:193 udata/tests/api/test_datasets_api.py:1156
650
+ #: udata/core/dataset/models.py:204 udata/tests/api/test_datasets_api.py:1157
628
651
  #, python-brace-format
629
652
  msgid ""
630
653
  "Version \"{version}\" is not an allowed value for the schema \"{name}\". "
631
654
  "Allowed versions: {values}"
632
655
  msgstr ""
633
656
 
634
- #: udata/core/dataset/models.py:470 udata/core/dataset/rdf.py:567
635
- #: udata/tests/dataset/test_dataset_rdf.py:709
636
- #: udata/tests/dataset/test_dataset_rdf.py:722
657
+ #: udata/core/dataset/models.py:482 udata/core/dataset/rdf.py:576
658
+ #: udata/tests/dataset/test_dataset_rdf.py:723
659
+ #: udata/tests/dataset/test_dataset_rdf.py:736
637
660
  msgid "Nameless resource"
638
661
  msgstr ""
639
662
 
640
- #: udata/core/dataset/models.py:572
663
+ #: udata/core/dataset/models.py:584
641
664
  msgid "Future date of update"
642
665
  msgstr ""
643
666
 
644
- #: udata/core/dataset/models.py:604
667
+ #: udata/core/dataset/models.py:616
645
668
  msgid "Last update of the dataset resources"
646
669
  msgstr ""
647
670
 
648
- #: udata/core/dataset/models.py:659
671
+ #: udata/core/dataset/models.py:671
649
672
  msgid "dataset"
650
673
  msgstr ""
651
674
 
652
- #: udata/core/dataset/rdf.py:565 udata/tests/dataset/test_dataset_rdf.py:679
653
- #: udata/tests/dataset/test_dataset_rdf.py:696
675
+ #: udata/core/dataset/rdf.py:574 udata/tests/dataset/test_dataset_rdf.py:693
676
+ #: udata/tests/dataset/test_dataset_rdf.py:710
654
677
  #, python-brace-format
655
678
  msgid "{format} resource"
656
679
  msgstr ""
657
680
 
658
- #: udata/core/dataset/tasks.py:112
681
+ #: udata/core/dataset/tasks.py:109
659
682
  msgid "You need to update some frequency-based datasets"
660
683
  msgstr ""
661
684
 
@@ -853,11 +876,11 @@ msgstr ""
853
876
  msgid "Content"
854
877
  msgstr ""
855
878
 
856
- #: udata/core/post/forms.py:19 udata/core/topic/forms.py:19
879
+ #: udata/core/post/forms.py:19
857
880
  msgid "Associated datasets"
858
881
  msgstr ""
859
882
 
860
- #: udata/core/post/forms.py:20 udata/core/topic/forms.py:20
883
+ #: udata/core/post/forms.py:20
861
884
  msgid "Associated reuses"
862
885
  msgstr ""
863
886
 
@@ -1017,7 +1040,7 @@ msgstr ""
1017
1040
  msgid "reuse"
1018
1041
  msgstr ""
1019
1042
 
1020
- #: udata/core/reuse/tasks.py:45
1043
+ #: udata/core/reuse/tasks.py:48
1021
1044
  msgid "New reuse"
1022
1045
  msgstr ""
1023
1046
 
@@ -1122,15 +1145,35 @@ msgstr ""
1122
1145
  msgid "French arrondissement"
1123
1146
  msgstr ""
1124
1147
 
1125
- #: udata/core/topic/activities.py:17
1148
+ #: udata/core/topic/activities.py:25
1126
1149
  msgid "created a topic"
1127
1150
  msgstr ""
1128
1151
 
1129
- #: udata/core/topic/activities.py:23
1152
+ #: udata/core/topic/activities.py:31
1130
1153
  msgid "updated a topic"
1131
1154
  msgstr ""
1132
1155
 
1133
- #: udata/core/topic/forms.py:28
1156
+ #: udata/core/topic/activities.py:38
1157
+ msgid "added an element to a topic"
1158
+ msgstr ""
1159
+
1160
+ #: udata/core/topic/activities.py:44
1161
+ msgid "updated an element in a topic"
1162
+ msgstr ""
1163
+
1164
+ #: udata/core/topic/activities.py:51
1165
+ msgid "removed an element from a topic"
1166
+ msgstr ""
1167
+
1168
+ #: udata/core/topic/forms.py:17
1169
+ msgid "Element"
1170
+ msgstr ""
1171
+
1172
+ #: udata/core/topic/forms.py:26
1173
+ msgid "A topic element must have a title or an element."
1174
+ msgstr ""
1175
+
1176
+ #: udata/core/topic/forms.py:91
1134
1177
  msgid "Featured"
1135
1178
  msgstr ""
1136
1179
 
@@ -1230,46 +1273,46 @@ msgstr ""
1230
1273
  msgid "Tag \"%(tag)s\" must be between %(min)d and %(max)d characters long."
1231
1274
  msgstr ""
1232
1275
 
1233
- #: udata/forms/fields.py:461 udata/forms/fields.py:513
1276
+ #: udata/forms/fields.py:461 udata/forms/fields.py:520
1234
1277
  #, python-brace-format
1235
1278
  msgid "{0} does not exists"
1236
1279
  msgstr ""
1237
1280
 
1238
- #: udata/forms/fields.py:487 udata/tests/forms/test_model_field.py:333
1281
+ #: udata/forms/fields.py:494 udata/tests/forms/test_model_field.py:333
1239
1282
  #: udata/tests/forms/test_model_field.py:349
1240
1283
  msgid "Missing \"id\" field"
1241
1284
  msgstr ""
1242
1285
 
1243
- #: udata/forms/fields.py:494
1286
+ #: udata/forms/fields.py:501
1244
1287
  #, python-brace-format
1245
1288
  msgid "Expect a \"{0}\" class but \"{1}\" was found"
1246
1289
  msgstr ""
1247
1290
 
1248
- #: udata/forms/fields.py:500 udata/tests/forms/test_model_field.py:41
1291
+ #: udata/forms/fields.py:507 udata/tests/forms/test_model_field.py:41
1249
1292
  #: udata/tests/forms/test_model_field.py:56
1250
1293
  msgid "Expect both class and identifier"
1251
1294
  msgstr ""
1252
1295
 
1253
- #: udata/forms/fields.py:545
1296
+ #: udata/forms/fields.py:552
1254
1297
  #, python-brace-format
1255
1298
  msgid "Model for {0} not found"
1256
1299
  msgstr ""
1257
1300
 
1258
- #: udata/forms/fields.py:579
1301
+ #: udata/forms/fields.py:586
1259
1302
  #, python-brace-format
1260
1303
  msgid "Unknown identifiers: {identifiers}"
1261
1304
  msgstr ""
1262
1305
 
1263
- #: udata/forms/fields.py:713
1306
+ #: udata/forms/fields.py:720
1264
1307
  msgid "Unable to parse date range"
1265
1308
  msgstr ""
1266
1309
 
1267
- #: udata/forms/fields.py:745 udata/forms/fields.py:777
1310
+ #: udata/forms/fields.py:752 udata/forms/fields.py:784
1268
1311
  #: udata/tests/forms/test_publish_as_field.py:214
1269
1312
  msgid "Cannot change owner after creation. Please use transfer feature."
1270
1313
  msgstr ""
1271
1314
 
1272
- #: udata/forms/fields.py:750 udata/forms/fields.py:782
1315
+ #: udata/forms/fields.py:757 udata/forms/fields.py:789
1273
1316
  msgid "You must be authenticated"
1274
1317
  msgstr ""
1275
1318
 
@@ -1330,11 +1373,11 @@ msgstr ""
1330
1373
  msgid "Archived"
1331
1374
  msgstr ""
1332
1375
 
1333
- #: udata/harvest/backends/dcat.py:414
1376
+ #: udata/harvest/backends/dcat.py:431
1334
1377
  msgid "Remote URL prefix"
1335
1378
  msgstr ""
1336
1379
 
1337
- #: udata/harvest/backends/dcat.py:417
1380
+ #: udata/harvest/backends/dcat.py:434
1338
1381
  msgid "A prefix used to build the remote URL of the harvested items."
1339
1382
  msgstr ""
1340
1383
 
@@ -1354,6 +1397,18 @@ msgstr ""
1354
1397
  msgid "A CKAN tag name"
1355
1398
  msgstr ""
1356
1399
 
1400
+ #: udata/templates/404.html:6
1401
+ msgid "Page not found"
1402
+ msgstr ""
1403
+
1404
+ #: udata/templates/404.html:39
1405
+ msgid "The page you are looking for does not exist."
1406
+ msgstr ""
1407
+
1408
+ #: udata/templates/404.html:40
1409
+ msgid "Back to home"
1410
+ msgstr ""
1411
+
1357
1412
  #: udata/templates/admin.html:7
1358
1413
  msgid "Admin"
1359
1414
  msgstr ""
@@ -1777,18 +1832,19 @@ msgstr ""
1777
1832
  msgid "Expect a \"Target\" class but \"Wrong\" was found"
1778
1833
  msgstr ""
1779
1834
 
1780
- #: udata/tests/search/test_adapter.py:30
1835
+ #: udata/tests/search/test_adapter.py:31
1781
1836
  msgid "Never reused"
1782
1837
  msgstr ""
1783
1838
 
1784
- #: udata/tests/search/test_adapter.py:31
1839
+ #: udata/tests/search/test_adapter.py:32
1785
1840
  msgid "Little reused"
1786
1841
  msgstr ""
1787
1842
 
1788
- #: udata/tests/search/test_adapter.py:32
1843
+ #: udata/tests/search/test_adapter.py:33
1789
1844
  msgid "Quite reused"
1790
1845
  msgstr ""
1791
1846
 
1792
- #: udata/tests/search/test_adapter.py:33
1847
+ #: udata/tests/search/test_adapter.py:34
1793
1848
  msgid "Heavily reused"
1794
1849
  msgstr ""
1850
+
udata/uris.py CHANGED
@@ -69,7 +69,13 @@ def config_for(value, key):
69
69
 
70
70
 
71
71
  def homepage_url(**kwargs) -> str:
72
- return cdata_url("/", **kwargs) or url_for("api.site", **kwargs)
72
+ # Some tests were crashing not finding the route for api.site
73
+ # while rendering a 404… Not sure why but try/except seems to fix
74
+ # this :-(
75
+ try:
76
+ return cdata_url("/", **kwargs) or url_for("api.site", **kwargs)
77
+ except Exception:
78
+ return "/"
73
79
 
74
80
 
75
81
  def cdata_url(uri: str, **kwargs) -> Optional[str]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: udata
3
- Version: 11.1.2.dev3
3
+ Version: 11.1.2.dev5
4
4
  Summary: Open data portal
5
5
  Author-email: Opendata Team <opendatateam@data.gouv.fr>
6
6
  Maintainer-email: Opendata Team <opendatateam@data.gouv.fr>