udata 8.0.2.dev29304__py2.py3-none-any.whl → 9.1.0__py2.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 (86) hide show
  1. udata/__init__.py +1 -1
  2. udata/api/__init__.py +2 -0
  3. udata/api/commands.py +0 -2
  4. udata/api_fields.py +41 -3
  5. udata/commands/db.py +88 -48
  6. udata/core/dataservices/factories.py +33 -0
  7. udata/core/dataservices/models.py +42 -4
  8. udata/core/dataservices/rdf.py +106 -0
  9. udata/core/dataset/csv.py +8 -1
  10. udata/core/dataset/models.py +1 -2
  11. udata/core/dataset/rdf.py +37 -128
  12. udata/core/discussions/models.py +20 -0
  13. udata/core/organization/csv.py +5 -3
  14. udata/core/reports/__init__.py +0 -0
  15. udata/core/reports/api.py +44 -0
  16. udata/core/reports/constants.py +30 -0
  17. udata/core/reports/models.py +58 -0
  18. udata/core/reuse/csv.py +3 -0
  19. udata/core/site/api.py +33 -2
  20. udata/core/site/rdf.py +6 -1
  21. udata/core/spam/models.py +6 -0
  22. udata/core/topic/models.py +3 -2
  23. udata/core/topic/parsers.py +3 -2
  24. udata/core/user/apiv2.py +28 -0
  25. udata/db/__init__.py +0 -0
  26. udata/db/tasks.py +6 -0
  27. udata/features/notifications/__init__.py +0 -1
  28. udata/forms/fields.py +2 -2
  29. udata/harvest/api.py +19 -1
  30. udata/harvest/backends/base.py +118 -10
  31. udata/harvest/backends/dcat.py +28 -7
  32. udata/harvest/models.py +6 -0
  33. udata/harvest/tests/dcat/bnodes.xml +13 -2
  34. udata/harvest/tests/test_dcat_backend.py +21 -0
  35. udata/migrations/2024-06-11-fix-reuse-datasets-references.py +35 -0
  36. udata/models/__init__.py +1 -0
  37. udata/rdf.py +113 -2
  38. udata/routing.py +1 -1
  39. udata/settings.py +3 -1
  40. udata/static/admin.js +17 -17
  41. udata/static/admin.js.map +1 -1
  42. udata/static/chunks/{18.ad41fb75ac4226e1f3ce.js → 18.1922fd0b2b7fad122991.js} +3 -3
  43. udata/static/chunks/18.1922fd0b2b7fad122991.js.map +1 -0
  44. udata/static/chunks/{7.11ac4de064ae59691d49.js → 7.e2106342e94ee09393b1.js} +2 -2
  45. udata/static/chunks/7.e2106342e94ee09393b1.js.map +1 -0
  46. udata/static/common.js +1 -1
  47. udata/static/common.js.map +1 -1
  48. udata/storage/s3.py +3 -3
  49. udata/tasks.py +1 -0
  50. udata/tests/api/test_dataservices_api.py +26 -2
  51. udata/tests/api/test_datasets_api.py +1 -1
  52. udata/tests/api/test_reports_api.py +87 -0
  53. udata/tests/apiv2/test_me_api.py +40 -0
  54. udata/tests/dataset/test_dataset_rdf.py +19 -1
  55. udata/tests/frontend/test_auth.py +1 -4
  56. udata/tests/organization/test_csv_adapter.py +0 -1
  57. udata/tests/plugin.py +2 -0
  58. udata/tests/site/test_site_api.py +0 -1
  59. udata/tests/site/test_site_rdf.py +66 -0
  60. udata/tests/test_discussions.py +24 -34
  61. udata/tests/test_model.py +3 -2
  62. udata/tests/test_utils.py +1 -1
  63. udata/translations/ar/LC_MESSAGES/udata.mo +0 -0
  64. udata/translations/ar/LC_MESSAGES/udata.po +128 -64
  65. udata/translations/de/LC_MESSAGES/udata.mo +0 -0
  66. udata/translations/de/LC_MESSAGES/udata.po +128 -64
  67. udata/translations/es/LC_MESSAGES/udata.mo +0 -0
  68. udata/translations/es/LC_MESSAGES/udata.po +128 -64
  69. udata/translations/fr/LC_MESSAGES/udata.mo +0 -0
  70. udata/translations/fr/LC_MESSAGES/udata.po +128 -64
  71. udata/translations/it/LC_MESSAGES/udata.mo +0 -0
  72. udata/translations/it/LC_MESSAGES/udata.po +128 -64
  73. udata/translations/pt/LC_MESSAGES/udata.mo +0 -0
  74. udata/translations/pt/LC_MESSAGES/udata.po +128 -64
  75. udata/translations/sr/LC_MESSAGES/udata.mo +0 -0
  76. udata/translations/sr/LC_MESSAGES/udata.po +128 -64
  77. udata/translations/udata.pot +129 -65
  78. udata/uris.py +14 -13
  79. {udata-8.0.2.dev29304.dist-info → udata-9.1.0.dist-info}/METADATA +26 -7
  80. {udata-8.0.2.dev29304.dist-info → udata-9.1.0.dist-info}/RECORD +84 -72
  81. udata/static/chunks/18.ad41fb75ac4226e1f3ce.js.map +0 -1
  82. udata/static/chunks/7.11ac4de064ae59691d49.js.map +0 -1
  83. {udata-8.0.2.dev29304.dist-info → udata-9.1.0.dist-info}/LICENSE +0 -0
  84. {udata-8.0.2.dev29304.dist-info → udata-9.1.0.dist-info}/WHEEL +0 -0
  85. {udata-8.0.2.dev29304.dist-info → udata-9.1.0.dist-info}/entry_points.txt +0 -0
  86. {udata-8.0.2.dev29304.dist-info → udata-9.1.0.dist-info}/top_level.txt +0 -0
@@ -2,8 +2,8 @@ msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: udata\n"
4
4
  "Report-Msgid-Bugs-To: i18n@opendata.team\n"
5
- "POT-Creation-Date: 2024-04-15 12:06+0200\n"
6
- "PO-Revision-Date: 2024-04-15 10:07\n"
5
+ "POT-Creation-Date: 2024-07-10 14:52+0200\n"
6
+ "PO-Revision-Date: 2024-07-10 13:16\n"
7
7
  "Last-Translator: Open Data Team <i18n@opendata.team>\n"
8
8
  "Language: sr\n"
9
9
  "Language-Team: Serbian (Cyrillic)\n"
@@ -42,23 +42,59 @@ msgstr "Ваша лозинка је промењена"
42
42
  msgid "Password reset instructions"
43
43
  msgstr "Инструкције за ресетовање лозинке"
44
44
 
45
- #: udata/settings.py:430
45
+ #: udata/settings.py:435
46
46
  msgid "This dataset has been archived"
47
47
  msgstr "Овај скуп података је архивиран"
48
48
 
49
+ #: udata/uris.py:52
50
+ msgid "Invalid URL \"{url}\": {reason}"
51
+ msgstr ""
52
+
53
+ #: udata/tests/test_model.py:370 udata/uris.py:54
54
+ msgid "Invalid URL \"{url}\""
55
+ msgstr ""
56
+
57
+ #: udata/uris.py:105
58
+ msgid "Invalid scheme {0}, allowed schemes: {1}"
59
+ msgstr ""
60
+
61
+ #: udata/uris.py:108
62
+ msgid "Credentials in URL are not allowed"
63
+ msgstr ""
64
+
65
+ #: udata/uris.py:112
66
+ msgid "Invalid TLD {0}"
67
+ msgstr ""
68
+
69
+ #: udata/uris.py:121
70
+ msgid "{0} is a multicast IP"
71
+ msgstr ""
72
+
73
+ #: udata/uris.py:123
74
+ msgid "{0} is a mask IP"
75
+ msgstr ""
76
+
77
+ #: udata/uris.py:127
78
+ msgid "is a local URL"
79
+ msgstr ""
80
+
81
+ #: udata/uris.py:130
82
+ msgid "is a private URL"
83
+ msgstr ""
84
+
49
85
  #: udata/api/errors.py:4
50
86
  msgid "Validation error: your data cannot be updated for now, we have been notified of the error and we will fix it as soon as possible."
51
87
  msgstr "Грешка у валидацији: податке тренутно није могуће ажурирати. Обавештени смо о грешци и отклонићемо је чим то буде могуће."
52
88
 
53
- #: udata/api/oauth2.py:53
89
+ #: udata/api/oauth2.py:54
54
90
  msgid "Bearer Token"
55
91
  msgstr "Токен носиоца"
56
92
 
57
- #: udata/api/oauth2.py:57
93
+ #: udata/api/oauth2.py:58
58
94
  msgid "Default scope"
59
95
  msgstr "Подразумевани опсег"
60
96
 
61
- #: udata/api/oauth2.py:58
97
+ #: udata/api/oauth2.py:59
62
98
  msgid "System administrator rights"
63
99
  msgstr "Права администратора система"
64
100
 
@@ -129,15 +165,15 @@ msgstr "Лозинка мора да има симболе"
129
165
  msgid "Confirm change of email instructions"
130
166
  msgstr ""
131
167
 
132
- #: udata/auth/views.py:72
168
+ #: udata/auth/views.py:73
133
169
  msgid "You did not confirm your change of email within {email_within}. New instructions to confirm your change of email have been sent to {new_email}."
134
170
  msgstr ""
135
171
 
136
- #: udata/auth/views.py:82
172
+ #: udata/auth/views.py:83
137
173
  msgid "Thank you. Your change of email has been confirmed."
138
174
  msgstr "Хвала Вам. Промена е-маил адресе је потврђена."
139
175
 
140
- #: udata/auth/views.py:97
176
+ #: udata/auth/views.py:98
141
177
  msgid "Thank you. Confirmation instructions for changing your email have been sent to {new_email}."
142
178
  msgstr "Хвала. Инструкције за промену адресе су послате на {new_email}."
143
179
 
@@ -161,6 +197,20 @@ msgstr "Да ли желите да креирате нешто података
161
197
  msgid "Your udata instance is ready!"
162
198
  msgstr "Ваша платформа ја спремна!"
163
199
 
200
+ #: udata/core/owned.py:30 udata/forms/fields.py:739
201
+ #: udata/tests/api/test_dataservices_api.py:228
202
+ msgid "You can only set yourself as owner"
203
+ msgstr "Само себе можете да означите као власника"
204
+
205
+ #: udata/core/owned.py:38
206
+ msgid "Unknown organization"
207
+ msgstr ""
208
+
209
+ #: udata/core/owned.py:41 udata/forms/fields.py:762
210
+ #: udata/tests/api/test_dataservices_api.py:237
211
+ msgid "Permission denied for this organization"
212
+ msgstr "Дозвола ја ову организацију је одбијена"
213
+
164
214
  #: udata/core/badges/forms.py:14
165
215
  msgid "Kind"
166
216
  msgstr "Врста"
@@ -186,6 +236,16 @@ msgstr "Имејл"
186
236
  msgid "Publish as"
187
237
  msgstr "Објављено као"
188
238
 
239
+ #: udata/core/dataservices/models.py:129 udata/core/dataset/models.py:488
240
+ #: udata/mongo/datetime_fields.py:59
241
+ msgid "Creation date"
242
+ msgstr "Датум креирања"
243
+
244
+ #: udata/core/dataservices/models.py:133 udata/core/dataset/models.py:490
245
+ #: udata/mongo/datetime_fields.py:61
246
+ msgid "Last modification date"
247
+ msgstr "Датум последње измене"
248
+
189
249
  #: udata/core/dataset/activities.py:21
190
250
  msgid "created a dataset"
191
251
  msgstr "скуп података је направљен"
@@ -226,7 +286,7 @@ msgstr "Три пута дневно"
226
286
  msgid "Semidaily"
227
287
  msgstr "Два пута дневно"
228
288
 
229
- #: udata/core/dataset/constants.py:15 udata/harvest/models.py:19
289
+ #: udata/core/dataset/constants.py:15 udata/harvest/models.py:20
230
290
  msgid "Daily"
231
291
  msgstr "Дневно"
232
292
 
@@ -242,7 +302,7 @@ msgstr "Три пута недељно"
242
302
  msgid "Semiweekly"
243
303
  msgstr "Два пута недељно"
244
304
 
245
- #: udata/core/dataset/constants.py:19 udata/harvest/models.py:18
305
+ #: udata/core/dataset/constants.py:19 udata/harvest/models.py:19
246
306
  msgid "Weekly"
247
307
  msgstr "Седмично"
248
308
 
@@ -258,7 +318,7 @@ msgstr "Три пута месечно"
258
318
  msgid "Semimonthly"
259
319
  msgstr "Два пута месечно"
260
320
 
261
- #: udata/core/dataset/constants.py:23 udata/harvest/models.py:17
321
+ #: udata/core/dataset/constants.py:23 udata/harvest/models.py:18
262
322
  msgid "Monthly"
263
323
  msgstr "Месечно"
264
324
 
@@ -474,38 +534,30 @@ msgstr "Приватно"
474
534
  msgid "Restrict the dataset visibility to you or your organization only."
475
535
  msgstr "Ограничите видљивост скупа података само на себе или своју организацију."
476
536
 
477
- #: udata/core/dataset/models.py:108
537
+ #: udata/core/dataset/models.py:107
478
538
  msgid "A schema must contains a name or an URL when a version is provided."
479
539
  msgstr ""
480
540
 
481
- #: udata/core/dataset/models.py:135 udata/tests/api/test_datasets_api.py:770
541
+ #: udata/core/dataset/models.py:134 udata/tests/api/test_datasets_api.py:770
482
542
  #: udata/tests/api/test_datasets_api.py:776
483
543
  msgid "Schema name \"{schema}\" is not an allowed value. Allowed values: {values}"
484
544
  msgstr "Име шеме \"{schema}\" није дозвољена вредност. Дозвољене вредности: {values}"
485
545
 
486
- #: udata/core/dataset/models.py:150 udata/tests/api/test_datasets_api.py:782
546
+ #: udata/core/dataset/models.py:149 udata/tests/api/test_datasets_api.py:782
487
547
  msgid "Version \"{version}\" is not an allowed value for the schema \"{name}\". Allowed versions: {values}"
488
548
  msgstr ""
489
549
 
490
- #: udata/core/dataset/models.py:401 udata/core/dataset/rdf.py:452
491
- #: udata/tests/dataset/test_dataset_rdf.py:499
492
- #: udata/tests/dataset/test_dataset_rdf.py:512
550
+ #: udata/core/dataset/models.py:400 udata/core/dataset/rdf.py:435
551
+ #: udata/tests/dataset/test_dataset_rdf.py:517
552
+ #: udata/tests/dataset/test_dataset_rdf.py:530
493
553
  msgid "Nameless resource"
494
554
  msgstr "Ресурс без имена"
495
555
 
496
- #: udata/core/dataset/models.py:476
556
+ #: udata/core/dataset/models.py:475
497
557
  msgid "Future date of update"
498
558
  msgstr "Будући датум ажурирања"
499
559
 
500
- #: udata/core/dataset/models.py:489 udata/mongo/datetime_fields.py:59
501
- msgid "Creation date"
502
- msgstr "Датум креирања"
503
-
504
- #: udata/core/dataset/models.py:491 udata/mongo/datetime_fields.py:61
505
- msgid "Last modification date"
506
- msgstr "Датум последње измене"
507
-
508
- #: udata/core/dataset/models.py:500
560
+ #: udata/core/dataset/models.py:499
509
561
  msgid "Pivotal data"
510
562
  msgstr "Кључни подаци"
511
563
 
@@ -513,7 +565,7 @@ msgstr "Кључни подаци"
513
565
  msgid "dataset"
514
566
  msgstr "скуп података"
515
567
 
516
- #: udata/core/dataset/rdf.py:450 udata/tests/dataset/test_dataset_rdf.py:486
568
+ #: udata/core/dataset/rdf.py:433 udata/tests/dataset/test_dataset_rdf.py:504
517
569
  msgid "{format} resource"
518
570
  msgstr "{format} ресурс"
519
571
 
@@ -578,17 +630,17 @@ msgid "Editor"
578
630
  msgstr "Уредник"
579
631
 
580
632
  #: udata/core/organization/constants.py:11 udata/features/transfer/models.py:14
581
- #: udata/harvest/models.py:23 udata/harvest/models.py:33 udata/harvest/models.py:71
633
+ #: udata/harvest/models.py:24 udata/harvest/models.py:34 udata/harvest/models.py:77
582
634
  msgid "Pending"
583
635
  msgstr "На чекању"
584
636
 
585
637
  #: udata/core/organization/constants.py:12 udata/features/transfer/models.py:15
586
- #: udata/harvest/models.py:72
638
+ #: udata/harvest/models.py:78
587
639
  msgid "Accepted"
588
640
  msgstr "Прихваћено"
589
641
 
590
642
  #: udata/core/organization/constants.py:13 udata/features/transfer/models.py:16
591
- #: udata/harvest/models.py:73
643
+ #: udata/harvest/models.py:79
592
644
  msgid "Refused"
593
645
  msgstr "Одбијено"
594
646
 
@@ -639,23 +691,23 @@ msgstr ""
639
691
  msgid "Role"
640
692
  msgstr "Улога"
641
693
 
642
- #: udata/core/organization/models.py:113
694
+ #: udata/core/organization/models.py:115
643
695
  msgid "Public Service"
644
696
  msgstr "Јавни сервис"
645
697
 
646
- #: udata/core/organization/models.py:114
698
+ #: udata/core/organization/models.py:116
647
699
  msgid "Certified"
648
700
  msgstr "Сертификовано"
649
701
 
650
- #: udata/core/organization/models.py:115
702
+ #: udata/core/organization/models.py:117
651
703
  msgid "Association"
652
704
  msgstr ""
653
705
 
654
- #: udata/core/organization/models.py:116
706
+ #: udata/core/organization/models.py:118
655
707
  msgid "Company"
656
708
  msgstr ""
657
709
 
658
- #: udata/core/organization/models.py:117
710
+ #: udata/core/organization/models.py:119
659
711
  msgid "Local authority"
660
712
  msgstr ""
661
713
 
@@ -745,6 +797,30 @@ msgstr ""
745
797
  msgid "post"
746
798
  msgstr "Објава"
747
799
 
800
+ #: udata/core/reports/constants.py:18
801
+ msgid "Explicit content"
802
+ msgstr ""
803
+
804
+ #: udata/core/reports/constants.py:19
805
+ msgid "Illegal content"
806
+ msgstr ""
807
+
808
+ #: udata/core/reports/constants.py:20 udata/core/reuse/constants.py:29
809
+ msgid "Others"
810
+ msgstr "Остало"
811
+
812
+ #: udata/core/reports/constants.py:21
813
+ msgid "Personal data"
814
+ msgstr ""
815
+
816
+ #: udata/core/reports/constants.py:22
817
+ msgid "Security"
818
+ msgstr ""
819
+
820
+ #: udata/core/reports/constants.py:23
821
+ msgid "Spam"
822
+ msgstr ""
823
+
748
824
  #: udata/core/reuse/activities.py:22
749
825
  msgid "created a reuse"
750
826
  msgstr "направљен је пример употребе"
@@ -841,10 +917,6 @@ msgstr "Закон и право"
841
917
  msgid "Open data tools"
842
918
  msgstr "Алати отворених података"
843
919
 
844
- #: udata/core/reuse/constants.py:29
845
- msgid "Others"
846
- msgstr "Остало"
847
-
848
920
  #: udata/core/reuse/forms.py:14
849
921
  msgid "This URL is already registered"
850
922
  msgstr "Овај URL је већ регистрован"
@@ -1009,7 +1081,7 @@ msgstr "Основни подаци"
1009
1081
  msgid "Roles"
1010
1082
  msgstr "Улоге"
1011
1083
 
1012
- #: udata/core/user/models.py:273 udata/tests/api/test_me_api.py:313
1084
+ #: udata/core/user/models.py:284 udata/tests/api/test_me_api.py:313
1013
1085
  msgid "Account deletion"
1014
1086
  msgstr "Брисање налога"
1015
1087
 
@@ -1045,10 +1117,6 @@ msgstr "Улога {role} не постоји"
1045
1117
  msgid "Not a valid UUID"
1046
1118
  msgstr "UUID није важећи"
1047
1119
 
1048
- #: udata/forms/fields.py:210 udata/tests/api/test_datasets_api.py:764
1049
- msgid "Invalid URL"
1050
- msgstr "Неправилан URL"
1051
-
1052
1120
  #: udata/forms/fields.py:414
1053
1121
  #, python-format
1054
1122
  msgid "Tag \"%(tag)s\" must be between %(min)d and %(max)d characters long."
@@ -1088,14 +1156,6 @@ msgstr "Није могуће рашчланити опсег датума"
1088
1156
  msgid "You must be authenticated"
1089
1157
  msgstr "Морате потврдити свој идентитет"
1090
1158
 
1091
- #: udata/forms/fields.py:739
1092
- msgid "You can only set yourself as owner"
1093
- msgstr "Само себе можете да означите као власника"
1094
-
1095
- #: udata/forms/fields.py:762
1096
- msgid "Permission denied for this organization"
1097
- msgstr "Дозвола ја ову организацију је одбијена"
1098
-
1099
1159
  #: udata/forms/validators.py:59
1100
1160
  #, python-format
1101
1161
  msgid "This field requires \"%(name)s\" to be set"
@@ -1113,43 +1173,43 @@ msgstr "Детаљи харвестера"
1113
1173
  msgid "Backend"
1114
1174
  msgstr "Позадинска компонента"
1115
1175
 
1116
- #: udata/harvest/models.py:16
1176
+ #: udata/harvest/models.py:17
1117
1177
  msgid "Manual"
1118
1178
  msgstr "Ручно"
1119
1179
 
1120
- #: udata/harvest/models.py:24
1180
+ #: udata/harvest/models.py:25
1121
1181
  msgid "Initializing"
1122
1182
  msgstr "Иницијализација"
1123
1183
 
1124
- #: udata/harvest/models.py:25
1184
+ #: udata/harvest/models.py:26
1125
1185
  msgid "Initialized"
1126
1186
  msgstr "Покренуто"
1127
1187
 
1128
- #: udata/harvest/models.py:26
1188
+ #: udata/harvest/models.py:27
1129
1189
  msgid "Processing"
1130
1190
  msgstr "Обрада"
1131
1191
 
1132
- #: udata/harvest/models.py:27 udata/harvest/models.py:35
1192
+ #: udata/harvest/models.py:28 udata/harvest/models.py:36
1133
1193
  msgid "Done"
1134
1194
  msgstr "Готово"
1135
1195
 
1136
- #: udata/harvest/models.py:28
1196
+ #: udata/harvest/models.py:29
1137
1197
  msgid "Done with errors"
1138
1198
  msgstr "Готово са грешкама"
1139
1199
 
1140
- #: udata/harvest/models.py:29 udata/harvest/models.py:36
1200
+ #: udata/harvest/models.py:30 udata/harvest/models.py:37
1141
1201
  msgid "Failed"
1142
1202
  msgstr "Није успело"
1143
1203
 
1144
- #: udata/harvest/models.py:34
1204
+ #: udata/harvest/models.py:35
1145
1205
  msgid "Started"
1146
1206
  msgstr "Започето"
1147
1207
 
1148
- #: udata/harvest/models.py:37
1208
+ #: udata/harvest/models.py:38
1149
1209
  msgid "Skipped"
1150
1210
  msgstr "Прескочено"
1151
1211
 
1152
- #: udata/harvest/models.py:38
1212
+ #: udata/harvest/models.py:39
1153
1213
  msgid "Archived"
1154
1214
  msgstr "Архивирано"
1155
1215
 
@@ -1535,6 +1595,10 @@ msgstr ""
1535
1595
  msgid "Here"
1536
1596
  msgstr ""
1537
1597
 
1598
+ #: udata/tests/api/test_datasets_api.py:764
1599
+ msgid "Invalid URL \"test\""
1600
+ msgstr ""
1601
+
1538
1602
  #: udata/tests/forms/test_model_field.py:155
1539
1603
  msgid "Expect a \"Target\" class but \"Wrong\" was found"
1540
1604
  msgstr ""