udata 6.1.6.dev25761__py2.py3-none-any.whl → 6.1.7__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 (64) hide show
  1. udata/__init__.py +1 -1
  2. udata/core/dataset/api_fields.py +20 -2
  3. udata/core/dataset/apiv2.py +8 -2
  4. udata/core/dataset/csv.py +1 -0
  5. udata/core/dataset/models.py +14 -0
  6. udata/core/dataset/rdf.py +3 -3
  7. udata/core/dataset/search.py +6 -2
  8. udata/core/discussions/api.py +4 -1
  9. udata/core/discussions/tasks.py +2 -2
  10. udata/core/organization/api_fields.py +1 -0
  11. udata/core/organization/forms.py +28 -0
  12. udata/core/organization/models.py +3 -0
  13. udata/core/topic/api.py +1 -0
  14. udata/core/topic/forms.py +1 -0
  15. udata/core/topic/models.py +20 -0
  16. udata/harvest/backends/dcat.py +10 -1
  17. udata/harvest/tests/test_dcat_backend.py +26 -1
  18. udata/models/slug_fields.py +4 -0
  19. udata/search/commands.py +8 -2
  20. udata/settings.py +7 -0
  21. udata/static/admin.js +19 -19
  22. udata/static/admin.js.map +1 -1
  23. udata/static/chunks/{1.01e4e2be1923d2ac99ae.js → 1.2a80f2805f0ad61574e4.js} +2 -2
  24. udata/static/chunks/1.2a80f2805f0ad61574e4.js.map +1 -0
  25. udata/static/chunks/{29.8a0027454d42f6c5ed8b.js → 29.7b551c87d15f96f30b57.js} +2 -2
  26. udata/static/chunks/29.7b551c87d15f96f30b57.js.map +1 -0
  27. udata/static/common.js +1 -1
  28. udata/static/common.js.map +1 -1
  29. udata/templates/macros/metadata.html +3 -0
  30. udata/templates/mail/badge_added_certified.html +1 -1
  31. udata/templates/mail/badge_added_public_service.html +1 -1
  32. udata/templates/mail/discussion_closed.html +1 -1
  33. udata/templates/mail/membership_request.html +1 -1
  34. udata/templates/mail/new_discussion.html +1 -1
  35. udata/templates/mail/new_discussion_comment.html +1 -1
  36. udata/templates/mail/user_mail_card.html +1 -1
  37. udata/tests/api/test_datasets_api.py +9 -1
  38. udata/tests/api/test_organizations_api.py +36 -2
  39. udata/tests/api/test_topics_api.py +1 -0
  40. udata/tests/frontend/test_markdown.py +15 -0
  41. udata/tests/test_discussions.py +80 -1
  42. udata/tests/test_model.py +18 -0
  43. udata/tests/test_topics.py +34 -0
  44. udata/translations/ar/LC_MESSAGES/udata.mo +0 -0
  45. udata/translations/ar/LC_MESSAGES/udata.po +37 -14
  46. udata/translations/es/LC_MESSAGES/udata.mo +0 -0
  47. udata/translations/es/LC_MESSAGES/udata.po +37 -14
  48. udata/translations/fr/LC_MESSAGES/udata.mo +0 -0
  49. udata/translations/fr/LC_MESSAGES/udata.po +37 -14
  50. udata/translations/it/LC_MESSAGES/udata.mo +0 -0
  51. udata/translations/it/LC_MESSAGES/udata.po +37 -14
  52. udata/translations/pt/LC_MESSAGES/udata.mo +0 -0
  53. udata/translations/pt/LC_MESSAGES/udata.po +37 -14
  54. udata/translations/sr/LC_MESSAGES/udata.mo +0 -0
  55. udata/translations/sr/LC_MESSAGES/udata.po +37 -14
  56. udata/translations/udata.pot +38 -15
  57. {udata-6.1.6.dev25761.dist-info → udata-6.1.7.dist-info}/METADATA +108 -95
  58. {udata-6.1.6.dev25761.dist-info → udata-6.1.7.dist-info}/RECORD +62 -61
  59. {udata-6.1.6.dev25761.dist-info → udata-6.1.7.dist-info}/WHEEL +1 -1
  60. udata/static/chunks/1.01e4e2be1923d2ac99ae.js.map +0 -1
  61. udata/static/chunks/29.8a0027454d42f6c5ed8b.js.map +0 -1
  62. {udata-6.1.6.dev25761.dist-info → udata-6.1.7.dist-info}/LICENSE +0 -0
  63. {udata-6.1.6.dev25761.dist-info → udata-6.1.7.dist-info}/entry_points.txt +0 -0
  64. {udata-6.1.6.dev25761.dist-info → udata-6.1.7.dist-info}/top_level.txt +0 -0
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: udata 6.1.6.dev0\n"
9
+ "Project-Id-Version: udata 6.1.7.dev0\n"
10
10
  "Report-Msgid-Bugs-To: i18n@opendata.team\n"
11
- "POT-Creation-Date: 2023-07-17 16:43+0200\n"
12
- "PO-Revision-Date: 2023-07-17 16:43+0200\n"
11
+ "POT-Creation-Date: 2023-07-24 11:21+0200\n"
12
+ "PO-Revision-Date: 2023-07-24 11:21+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"
@@ -222,7 +222,7 @@ msgid "Title"
222
222
  msgstr ""
223
223
 
224
224
  #: udata/core/dataset/forms.py:81 udata/core/dataset/forms.py:141
225
- #: udata/core/jobs/forms.py:28 udata/core/organization/forms.py:25
225
+ #: udata/core/jobs/forms.py:28 udata/core/organization/forms.py:49
226
226
  #: udata/core/reuse/forms.py:21 udata/core/topic/forms.py:17
227
227
  #: udata/harvest/forms.py:62
228
228
  msgid "Description"
@@ -286,7 +286,7 @@ msgstr ""
286
286
  msgid "Publish as"
287
287
  msgstr ""
288
288
 
289
- #: udata/core/dataset/forms.py:138 udata/core/organization/forms.py:23
289
+ #: udata/core/dataset/forms.py:138 udata/core/organization/forms.py:47
290
290
  msgid "Acronym"
291
291
  msgstr ""
292
292
 
@@ -516,7 +516,7 @@ msgid "You need to update some frequency-based datasets"
516
516
  msgstr ""
517
517
 
518
518
  #: udata/core/discussions/forms.py:14 udata/core/discussions/forms.py:21
519
- #: udata/core/organization/forms.py:54 udata/core/organization/forms.py:58
519
+ #: udata/core/organization/forms.py:80 udata/core/organization/forms.py:84
520
520
  #: udata/harvest/forms.py:78
521
521
  msgid "Comment"
522
522
  msgstr ""
@@ -539,7 +539,7 @@ msgstr ""
539
539
  msgid "A discussion has been closed"
540
540
  msgstr ""
541
541
 
542
- #: udata/core/jobs/forms.py:27 udata/core/organization/forms.py:21
542
+ #: udata/core/jobs/forms.py:27 udata/core/organization/forms.py:45
543
543
  #: udata/core/post/forms.py:15 udata/core/topic/forms.py:15
544
544
  #: udata/harvest/forms.py:60 udata/templates/api/admin.html:10
545
545
  msgid "Name"
@@ -569,27 +569,50 @@ msgstr ""
569
569
  msgid "updated an organization"
570
570
  msgstr ""
571
571
 
572
- #: udata/core/organization/forms.py:23
572
+ #: udata/core/organization/forms.py:25
573
+ #: udata/tests/api/test_organizations_api.py:115
574
+ msgid "A siret number is made of 14 digits"
575
+ msgstr ""
576
+
577
+ #: udata/core/organization/forms.py:36
578
+ #: udata/tests/api/test_organizations_api.py:125
579
+ msgid "A siret number is only made of digits"
580
+ msgstr ""
581
+
582
+ #: udata/core/organization/forms.py:39
583
+ #: udata/tests/api/test_organizations_api.py:120
584
+ msgid "Invalid Siret number"
585
+ msgstr ""
586
+
587
+ #: udata/core/organization/forms.py:47
573
588
  msgid "Shorter organization name"
574
589
  msgstr ""
575
590
 
576
- #: udata/core/organization/forms.py:26
591
+ #: udata/core/organization/forms.py:50
577
592
  msgid "The details about your organization"
578
593
  msgstr ""
579
594
 
580
- #: udata/core/organization/forms.py:28 udata/core/user/forms.py:20
595
+ #: udata/core/organization/forms.py:52 udata/core/user/forms.py:20
581
596
  msgid "Website"
582
597
  msgstr ""
583
598
 
584
- #: udata/core/organization/forms.py:28
599
+ #: udata/core/organization/forms.py:52
585
600
  msgid "The organization website URL"
586
601
  msgstr ""
587
602
 
588
- #: udata/core/organization/forms.py:29
603
+ #: udata/core/organization/forms.py:53
589
604
  msgid "Logo"
590
605
  msgstr ""
591
606
 
592
- #: udata/core/organization/forms.py:65
607
+ #: udata/core/organization/forms.py:54
608
+ msgid "Business id"
609
+ msgstr ""
610
+
611
+ #: udata/core/organization/forms.py:55
612
+ msgid "Business identification number"
613
+ msgstr ""
614
+
615
+ #: udata/core/organization/forms.py:91
593
616
  msgid "Role"
594
617
  msgstr ""
595
618
 
@@ -616,11 +639,11 @@ msgstr ""
616
639
  msgid "Refused"
617
640
  msgstr ""
618
641
 
619
- #: udata/core/organization/models.py:138
642
+ #: udata/core/organization/models.py:142
620
643
  msgid "Public Service"
621
644
  msgstr ""
622
645
 
623
- #: udata/core/organization/models.py:139
646
+ #: udata/core/organization/models.py:143
624
647
  msgid "Certified"
625
648
  msgstr ""
626
649
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: udata
3
- Version: 6.1.6.dev25761
3
+ Version: 6.1.7
4
4
  Summary: Open data portal
5
5
  Home-page: https://github.com/opendatateam/udata
6
6
  Author: Opendata Team
@@ -21,98 +21,98 @@ Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or l
21
21
  Requires-Python: >=3.7,<3.10
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
- Requires-Dist: amqp (==2.6.1)
25
- Requires-Dist: aniso8601 (==9.0.1)
26
- Requires-Dist: appdirs (==1.4.4)
27
- Requires-Dist: attrs (==21.2.0)
28
- Requires-Dist: authlib (==0.14.3)
29
- Requires-Dist: awesome-slugify (==1.6.5)
30
- Requires-Dist: babel (==2.8.0)
31
- Requires-Dist: bcrypt (==3.1.7)
32
- Requires-Dist: billiard (==3.6.4.0)
33
- Requires-Dist: bleach (==3.1.0)
34
- Requires-Dist: blinker (==1.4)
35
- Requires-Dist: boto3 (==1.26.102)
36
- Requires-Dist: botocore (==1.29.104)
37
- Requires-Dist: cachelib (==0.9.0)
38
- Requires-Dist: celery (==4.3.0)
39
- Requires-Dist: celerybeat-mongo (==0.2.0)
40
- Requires-Dist: certifi (==2021.5.30)
41
- Requires-Dist: cffi (==1.14.6)
42
- Requires-Dist: chardet (==3.0.4)
43
- Requires-Dist: click (==8.0.0)
44
- Requires-Dist: cryptography (==2.8)
45
- Requires-Dist: dnspython (==2.1.0)
46
- Requires-Dist: email-validator (==1.1.3)
47
- Requires-Dist: factory-boy (==2.12.0)
48
- Requires-Dist: faker (==3.0.0)
49
- Requires-Dist: flask (==2.1.2)
50
- Requires-Dist: flask-babelex (==0.9.4)
51
- Requires-Dist: flask-caching (==2.0.2)
52
- Requires-Dist: flask-cdn (==1.5.3)
53
- Requires-Dist: flask-cors (==3.0.8)
54
- Requires-Dist: flask-gravatar (==0.5.0)
55
- Requires-Dist: flask-login (==0.6.2)
56
- Requires-Dist: flask-mail (==0.9.1)
57
- Requires-Dist: flask-mongoengine (==1.0.0)
58
- Requires-Dist: flask-navigation (==0.2.0)
59
- Requires-Dist: flask-principal (==0.4.0)
60
- Requires-Dist: flask-restx (==1.0.5)
61
- Requires-Dist: flask-security-too (==5.1.2)
62
- Requires-Dist: flask-sitemap (==0.3.0)
63
- Requires-Dist: flask-storage (==1.3.2)
64
- Requires-Dist: flask-wtf (==1.0.1)
65
- Requires-Dist: geojson (==2.5.0)
66
- Requires-Dist: html2text (==2019.9.26)
67
- Requires-Dist: idna (==2.10)
68
- Requires-Dist: importlib-metadata (==6.0.0)
69
- Requires-Dist: isodate (==0.6.0)
70
- Requires-Dist: itsdangerous (==2.1.2)
71
- Requires-Dist: jinja2 (==3.1.2)
72
- Requires-Dist: jmespath (==1.0.1)
73
- Requires-Dist: jsonschema (==3.2.0)
74
- Requires-Dist: kombu[redis] (==4.4.0)
75
- Requires-Dist: lxml (==4.4.2)
76
- Requires-Dist: markupsafe (==2.1.2)
77
- Requires-Dist: mistune (==0.8.4)
78
- Requires-Dist: mongoengine (==0.27.0)
79
- Requires-Dist: msgpack (==0.6.2)
80
- Requires-Dist: netaddr (==0.7.19)
81
- Requires-Dist: passlib (==1.7.4)
82
- Requires-Dist: pillow (==9.2.0)
83
- Requires-Dist: pycparser (==2.20)
84
- Requires-Dist: pydenticon (==0.3.1)
85
- Requires-Dist: pymongo (==4.3.3)
86
- Requires-Dist: pyparsing (==2.4.7)
87
- Requires-Dist: pyrsistent (==0.18.0)
88
- Requires-Dist: python-dateutil (==2.8.1)
89
- Requires-Dist: pytz (==2019.3)
90
- Requires-Dist: rdflib (==6.0.0)
91
- Requires-Dist: redis (==3.3.11)
92
- Requires-Dist: regex (==2021.8.3)
93
- Requires-Dist: requests (==2.24.0)
94
- Requires-Dist: s3transfer (==0.6.0)
95
- Requires-Dist: simplejson (==3.17.0)
96
- Requires-Dist: six (==1.16.0)
97
- Requires-Dist: speaklater (==1.3)
98
- Requires-Dist: stringdist (==1.0.9)
99
- Requires-Dist: text-unidecode (==1.3)
100
- Requires-Dist: tlds (==2021080800)
101
- Requires-Dist: ujson (==1.35)
102
- Requires-Dist: unicodecsv (==0.14.1)
103
- Requires-Dist: unidecode (==0.4.21)
104
- Requires-Dist: uritools (==3.0.2)
105
- Requires-Dist: urlextract (==0.14.0)
106
- Requires-Dist: urllib3 (==1.25.11)
107
- Requires-Dist: vine (==1.3.0)
108
- Requires-Dist: voluptuous (==0.11.7)
109
- Requires-Dist: webencodings (==0.5.1)
110
- Requires-Dist: werkzeug (==2.2.2)
111
- Requires-Dist: wtforms[email] (==3.0.1)
112
- Requires-Dist: wtforms-json (==0.3.5)
113
- Requires-Dist: xmltodict (==0.12.0)
114
- Requires-Dist: zipp (==3.12.1)
115
- Requires-Dist: zxcvbn (==4.4.28)
24
+ Requires-Dist: amqp ==2.6.1
25
+ Requires-Dist: aniso8601 ==9.0.1
26
+ Requires-Dist: appdirs ==1.4.4
27
+ Requires-Dist: attrs ==21.2.0
28
+ Requires-Dist: authlib ==0.14.3
29
+ Requires-Dist: awesome-slugify ==1.6.5
30
+ Requires-Dist: babel ==2.8.0
31
+ Requires-Dist: bcrypt ==3.1.7
32
+ Requires-Dist: billiard ==3.6.4.0
33
+ Requires-Dist: bleach ==3.1.0
34
+ Requires-Dist: blinker ==1.4
35
+ Requires-Dist: boto3 ==1.26.102
36
+ Requires-Dist: botocore ==1.29.104
37
+ Requires-Dist: cachelib ==0.9.0
38
+ Requires-Dist: celery ==4.3.0
39
+ Requires-Dist: celerybeat-mongo ==0.2.0
40
+ Requires-Dist: certifi ==2021.5.30
41
+ Requires-Dist: cffi ==1.14.6
42
+ Requires-Dist: chardet ==3.0.4
43
+ Requires-Dist: click ==8.0.0
44
+ Requires-Dist: cryptography ==2.8
45
+ Requires-Dist: dnspython ==2.1.0
46
+ Requires-Dist: email-validator ==1.1.3
47
+ Requires-Dist: factory-boy ==2.12.0
48
+ Requires-Dist: faker ==3.0.0
49
+ Requires-Dist: flask ==2.1.2
50
+ Requires-Dist: flask-babelex ==0.9.4
51
+ Requires-Dist: flask-caching ==2.0.2
52
+ Requires-Dist: flask-cdn ==1.5.3
53
+ Requires-Dist: flask-cors ==3.0.8
54
+ Requires-Dist: flask-gravatar ==0.5.0
55
+ Requires-Dist: flask-login ==0.6.2
56
+ Requires-Dist: flask-mail ==0.9.1
57
+ Requires-Dist: flask-mongoengine ==1.0.0
58
+ Requires-Dist: flask-navigation ==0.2.0
59
+ Requires-Dist: flask-principal ==0.4.0
60
+ Requires-Dist: flask-restx ==1.0.5
61
+ Requires-Dist: flask-security-too ==5.1.2
62
+ Requires-Dist: flask-sitemap ==0.3.0
63
+ Requires-Dist: flask-storage ==1.3.2
64
+ Requires-Dist: flask-wtf ==1.0.1
65
+ Requires-Dist: geojson ==2.5.0
66
+ Requires-Dist: html2text ==2019.9.26
67
+ Requires-Dist: idna ==2.10
68
+ Requires-Dist: importlib-metadata ==6.0.0
69
+ Requires-Dist: isodate ==0.6.0
70
+ Requires-Dist: itsdangerous ==2.1.2
71
+ Requires-Dist: jinja2 ==3.1.2
72
+ Requires-Dist: jmespath ==1.0.1
73
+ Requires-Dist: jsonschema ==3.2.0
74
+ Requires-Dist: kombu[redis] ==4.4.0
75
+ Requires-Dist: lxml ==4.4.2
76
+ Requires-Dist: markupsafe ==2.1.2
77
+ Requires-Dist: mistune ==0.8.4
78
+ Requires-Dist: mongoengine ==0.27.0
79
+ Requires-Dist: msgpack ==0.6.2
80
+ Requires-Dist: netaddr ==0.7.19
81
+ Requires-Dist: passlib ==1.7.4
82
+ Requires-Dist: pillow ==9.2.0
83
+ Requires-Dist: pycparser ==2.20
84
+ Requires-Dist: pydenticon ==0.3.1
85
+ Requires-Dist: pymongo ==4.3.3
86
+ Requires-Dist: pyparsing ==2.4.7
87
+ Requires-Dist: pyrsistent ==0.18.0
88
+ Requires-Dist: python-dateutil ==2.8.1
89
+ Requires-Dist: pytz ==2019.3
90
+ Requires-Dist: rdflib ==6.0.0
91
+ Requires-Dist: redis ==3.3.11
92
+ Requires-Dist: regex ==2021.8.3
93
+ Requires-Dist: requests ==2.24.0
94
+ Requires-Dist: s3transfer ==0.6.0
95
+ Requires-Dist: simplejson ==3.17.0
96
+ Requires-Dist: six ==1.16.0
97
+ Requires-Dist: speaklater ==1.3
98
+ Requires-Dist: stringdist ==1.0.9
99
+ Requires-Dist: text-unidecode ==1.3
100
+ Requires-Dist: tlds ==2021080800
101
+ Requires-Dist: ujson ==1.35
102
+ Requires-Dist: unicodecsv ==0.14.1
103
+ Requires-Dist: unidecode ==0.4.21
104
+ Requires-Dist: uritools ==3.0.2
105
+ Requires-Dist: urlextract ==0.14.0
106
+ Requires-Dist: urllib3 ==1.25.11
107
+ Requires-Dist: vine ==1.3.0
108
+ Requires-Dist: voluptuous ==0.11.7
109
+ Requires-Dist: webencodings ==0.5.1
110
+ Requires-Dist: werkzeug ==2.2.2
111
+ Requires-Dist: wtforms[email] ==3.0.1
112
+ Requires-Dist: wtforms-json ==0.3.5
113
+ Requires-Dist: xmltodict ==0.12.0
114
+ Requires-Dist: zipp ==3.12.1
115
+ Requires-Dist: zxcvbn ==4.4.28
116
116
 
117
117
  <p align="center"><img src="https://i.imgur.com/rlRox1c.png"></p>
118
118
 
@@ -130,11 +130,24 @@ for publishing udata's roadmap and for building consensus around it.
130
130
  It is collectively taken care of by members of the
131
131
  [OpenDataTeam](https://github.com/opendatateam).
132
132
 
133
- [readthedocs-url]: https://udata.readthedocs.io/en/latest/
133
+ [readthedocs-url]: https://udata.readthedocs.io/en/v6.1.7/
134
134
 
135
135
  # Changelog
136
136
 
137
- ## Current (in progress)
137
+ ## 6.1.7 (2023-09-01)
138
+
139
+ - Fix slug overflow with index suffix when reaching max_length [#2874](https://github.com/opendatateam/udata/pull/2874)
140
+ - Add extra field to topic model and add it to the dataset search adapter [#2876](https://github.com/opendatateam/udata/pull/2876)
141
+ - Upgrade pyyaml in develop and doc deps [#2880](https://github.com/opendatateam/udata/pull/2880)
142
+ - Expose dataset's `*_internal` dates in a nested `internal` nested field in api marshalling [#2862](https://github.com/opendatateam/udata/pull/2862)
143
+ - Add `business_number_id` metadata for organizations [#2871](https://github.com/opendatateam/udata/pull/2871) [#2887](https://github.com/opendatateam/udata/pull/2887)
144
+ - Return 403 when posting comment on discussion closed [#2881](https://github.com/opendatateam/udata/pull/2881)
145
+ - Ensure rdf parsed frequency is lowercase [#2883](https://github.com/opendatateam/udata/pull/2883)
146
+ - Add a dict of URIs to replace in a RDF graph at harvest time [#2884](https://github.com/opendatateam/udata/pull/2884)
147
+ - Fix duplicate recipients in new comments mail [#2886](https://github.com/opendatateam/udata/pull/2886)
148
+ - Add type to resource csv adapter [#2888](https://github.com/opendatateam/udata/pull/2888)
149
+
150
+ ## 6.1.6 (2023-07-19)
138
151
 
139
152
  - Improve DCAT harvest of mime type [#2857](https://github.com/opendatateam/udata/pull/2857)
140
153
  - Don't crash on files not found when purging resources [2858](https://github.com/opendatateam/udata/pull/2858)