udata 7.0.7.dev28493__py2.py3-none-any.whl → 7.0.7.dev28563__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.
- udata/core/badges/api.py +1 -8
- udata/core/badges/fields.py +7 -0
- udata/core/dataset/api.py +3 -2
- udata/core/dataset/api_fields.py +1 -1
- udata/core/organization/api.py +3 -2
- udata/core/organization/api_fields.py +1 -1
- udata/core/reuse/api.py +3 -2
- udata/core/reuse/api_fields.py +1 -1
- {udata-7.0.7.dev28493.dist-info → udata-7.0.7.dev28563.dist-info}/METADATA +3 -7
- {udata-7.0.7.dev28493.dist-info → udata-7.0.7.dev28563.dist-info}/RECORD +14 -13
- {udata-7.0.7.dev28493.dist-info → udata-7.0.7.dev28563.dist-info}/LICENSE +0 -0
- {udata-7.0.7.dev28493.dist-info → udata-7.0.7.dev28563.dist-info}/WHEEL +0 -0
- {udata-7.0.7.dev28493.dist-info → udata-7.0.7.dev28563.dist-info}/entry_points.txt +0 -0
- {udata-7.0.7.dev28493.dist-info → udata-7.0.7.dev28563.dist-info}/top_level.txt +0 -0
udata/core/badges/api.py
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
from udata.api import api
|
|
1
|
+
from udata.api import api
|
|
2
2
|
|
|
3
3
|
from .forms import badge_form
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
badge_fields = api.model('Badge', {
|
|
7
|
-
'kind': fields.String(description=('Kind of badge (certified, etc), '
|
|
8
|
-
'specific to each model'),
|
|
9
|
-
required=True),
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
|
|
13
6
|
def add(obj):
|
|
14
7
|
'''
|
|
15
8
|
Handle a badge add API.
|
udata/core/dataset/api.py
CHANGED
|
@@ -34,6 +34,7 @@ from udata.core import storages
|
|
|
34
34
|
from udata.core.dataset.models import CHECKSUM_TYPES
|
|
35
35
|
from udata.core.storages.api import handle_upload, upload_parser
|
|
36
36
|
from udata.core.badges import api as badges_api
|
|
37
|
+
from udata.core.badges.fields import badge_fields
|
|
37
38
|
from udata.core.followers.api import FollowAPI
|
|
38
39
|
from udata.utils import get_by
|
|
39
40
|
from udata.rdf import (
|
|
@@ -314,8 +315,8 @@ class AvailableDatasetBadgesAPI(API):
|
|
|
314
315
|
@ns.route('/<dataset:dataset>/badges/', endpoint='dataset_badges')
|
|
315
316
|
class DatasetBadgesAPI(API):
|
|
316
317
|
@api.doc('add_dataset_badge', **common_doc)
|
|
317
|
-
@api.expect(
|
|
318
|
-
@api.marshal_with(
|
|
318
|
+
@api.expect(badge_fields)
|
|
319
|
+
@api.marshal_with(badge_fields)
|
|
319
320
|
@api.secure(admin_permission)
|
|
320
321
|
def post(self, dataset):
|
|
321
322
|
'''Create a new badge for a given dataset'''
|
udata/core/dataset/api_fields.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from udata.api import api, fields, base_reference
|
|
2
|
-
from udata.core.badges.
|
|
2
|
+
from udata.core.badges.fields import badge_fields
|
|
3
3
|
from udata.core.organization.api_fields import org_ref_fields
|
|
4
4
|
from udata.core.organization.constants import BIGGEST_LOGO_SIZE
|
|
5
5
|
from udata.core.spatial.api_fields import spatial_coverage_fields
|
udata/core/organization/api.py
CHANGED
|
@@ -7,6 +7,7 @@ from udata.api import api, API, errors
|
|
|
7
7
|
from udata.api.parsers import ModelApiParser
|
|
8
8
|
from udata.auth import admin_permission, current_user
|
|
9
9
|
from udata.core.badges import api as badges_api
|
|
10
|
+
from udata.core.badges.fields import badge_fields
|
|
10
11
|
from udata.core.followers.api import FollowAPI
|
|
11
12
|
from udata.utils import multi_to_dict
|
|
12
13
|
from udata.rdf import (
|
|
@@ -191,8 +192,8 @@ class AvailableOrganizationBadgesAPI(API):
|
|
|
191
192
|
@ns.route('/<org:org>/badges/', endpoint='organization_badges')
|
|
192
193
|
class OrganizationBadgesAPI(API):
|
|
193
194
|
@api.doc('add_organization_badge', **common_doc)
|
|
194
|
-
@api.expect(
|
|
195
|
-
@api.marshal_with(
|
|
195
|
+
@api.expect(badge_fields)
|
|
196
|
+
@api.marshal_with(badge_fields)
|
|
196
197
|
@api.secure(admin_permission)
|
|
197
198
|
def post(self, org):
|
|
198
199
|
'''Create a new badge for a given organization'''
|
udata/core/reuse/api.py
CHANGED
|
@@ -10,6 +10,7 @@ from udata.models import Dataset
|
|
|
10
10
|
from udata.utils import id_or_404
|
|
11
11
|
|
|
12
12
|
from udata.core.badges import api as badges_api
|
|
13
|
+
from udata.core.badges.fields import badge_fields
|
|
13
14
|
from udata.core.dataset.api_fields import dataset_ref_fields
|
|
14
15
|
from udata.core.followers.api import FollowAPI
|
|
15
16
|
from udata.core.storages.api import (
|
|
@@ -189,8 +190,8 @@ class AvailableDatasetBadgesAPI(API):
|
|
|
189
190
|
@ns.route('/<reuse:reuse>/badges/', endpoint='reuse_badges')
|
|
190
191
|
class ReuseBadgesAPI(API):
|
|
191
192
|
@api.doc('add_reuse_badge', **common_doc)
|
|
192
|
-
@api.expect(
|
|
193
|
-
@api.marshal_with(
|
|
193
|
+
@api.expect(badge_fields)
|
|
194
|
+
@api.marshal_with(badge_fields)
|
|
194
195
|
@api.secure(admin_permission)
|
|
195
196
|
def post(self, reuse):
|
|
196
197
|
'''Create a new badge for a given reuse'''
|
udata/core/reuse/api_fields.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from udata.api import api, fields, base_reference
|
|
2
2
|
|
|
3
|
-
from udata.core.badges.
|
|
3
|
+
from udata.core.badges.fields import badge_fields
|
|
4
4
|
from udata.core.dataset.api_fields import dataset_fields
|
|
5
5
|
from udata.core.organization.api_fields import org_ref_fields
|
|
6
6
|
from udata.core.user.api_fields import user_ref_fields
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 7.0.7.
|
|
3
|
+
Version: 7.0.7.dev28563
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -28,7 +28,6 @@ Requires-Dist: attrs ==21.2.0
|
|
|
28
28
|
Requires-Dist: authlib ==0.14.3
|
|
29
29
|
Requires-Dist: awesome-slugify ==1.6.5
|
|
30
30
|
Requires-Dist: babel ==2.12.1
|
|
31
|
-
Requires-Dist: bcrypt ==3.1.7
|
|
32
31
|
Requires-Dist: billiard ==3.6.4.0
|
|
33
32
|
Requires-Dist: bleach ==3.1.0
|
|
34
33
|
Requires-Dist: blinker ==1.4
|
|
@@ -78,7 +77,6 @@ Requires-Dist: lxml ==4.4.2
|
|
|
78
77
|
Requires-Dist: markupsafe ==2.1.2
|
|
79
78
|
Requires-Dist: mistune ==0.8.4
|
|
80
79
|
Requires-Dist: mongoengine ==0.27.0
|
|
81
|
-
Requires-Dist: msgpack ==0.6.2
|
|
82
80
|
Requires-Dist: netaddr ==0.7.19
|
|
83
81
|
Requires-Dist: passlib ==1.7.4
|
|
84
82
|
Requires-Dist: pillow ==9.2.0
|
|
@@ -94,15 +92,12 @@ Requires-Dist: redis ==3.3.11
|
|
|
94
92
|
Requires-Dist: regex ==2021.8.3
|
|
95
93
|
Requires-Dist: requests ==2.24.0
|
|
96
94
|
Requires-Dist: s3transfer ==0.6.0
|
|
97
|
-
Requires-Dist: simplejson ==3.17.0
|
|
98
95
|
Requires-Dist: six ==1.16.0
|
|
99
96
|
Requires-Dist: speaklater ==1.3
|
|
100
97
|
Requires-Dist: stringdist ==1.0.9
|
|
101
98
|
Requires-Dist: text-unidecode ==1.3
|
|
102
99
|
Requires-Dist: tlds ==2021080800
|
|
103
100
|
Requires-Dist: typing-extensions ==4.7.1
|
|
104
|
-
Requires-Dist: ujson ==1.35
|
|
105
|
-
Requires-Dist: unicodecsv ==0.14.1
|
|
106
101
|
Requires-Dist: unidecode ==0.4.21
|
|
107
102
|
Requires-Dist: uritools ==3.0.2
|
|
108
103
|
Requires-Dist: urlextract ==0.14.0
|
|
@@ -113,7 +108,6 @@ Requires-Dist: webencodings ==0.5.1
|
|
|
113
108
|
Requires-Dist: werkzeug ==2.2.2
|
|
114
109
|
Requires-Dist: wtforms[email] ==3.0.1
|
|
115
110
|
Requires-Dist: wtforms-json ==0.3.5
|
|
116
|
-
Requires-Dist: xmltodict ==0.12.0
|
|
117
111
|
Requires-Dist: zipp ==3.12.1
|
|
118
112
|
|
|
119
113
|
<p align="center"><img src="https://i.imgur.com/rlRox1c.png"></p>
|
|
@@ -143,6 +137,8 @@ It is collectively taken care of by members of the
|
|
|
143
137
|
- Topic: add filters in API [#3007](https://github.com/opendatateam/udata/pull/3007)
|
|
144
138
|
- Move constants outside `models.py` files to `constants.py` [#3001](https://github.com/opendatateam/udata/pull/3001)
|
|
145
139
|
- Move `db` and Mongo fields classes outside `udata.models` [#3005](https://github.com/opendatateam/udata/pull/3005)
|
|
140
|
+
- Remove unused dependencies [#3006](https://github.com/opendatateam/udata/pull/3006)
|
|
141
|
+
- Move `badge_fields` to separate module than `models.py` [#3011](https://github.com/opendatateam/udata/pull/3011)
|
|
146
142
|
|
|
147
143
|
## 7.0.6 (2024-03-29)
|
|
148
144
|
|
|
@@ -58,9 +58,10 @@ udata/core/activity/models.py,sha256=kzy9kcixX3DUo-2YpVjGXVHR4cOZMl7AsPiDBZ52EDs
|
|
|
58
58
|
udata/core/activity/signals.py,sha256=nplrZFDDuGVXwLWpI_Lhe64mBRMRtwooJG1KcCH6Ses,191
|
|
59
59
|
udata/core/activity/tasks.py,sha256=yKkDgBXYmVX-DS4P9hBgZcweEOU8mlihSj7pqQYOmkg,1242
|
|
60
60
|
udata/core/badges/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
|
-
udata/core/badges/api.py,sha256=
|
|
61
|
+
udata/core/badges/api.py,sha256=GVScMxwSerB8J_oo7yQEoxrCaR9roBmDQW3HJ_JAqbg,762
|
|
62
62
|
udata/core/badges/commands.py,sha256=NMihQH6ABUlkYpR2lNFW4dkeaWOjpijW7voudww8zW4,1129
|
|
63
63
|
udata/core/badges/factories.py,sha256=rDQC28fKLtYA6l69EqiyOQyN4C2jVj87EdKBEo4sYsw,297
|
|
64
|
+
udata/core/badges/fields.py,sha256=rpeyZcw5-oU8FZXPnzU9-rGrwW5vCyhwgei7aAR-n3I,255
|
|
64
65
|
udata/core/badges/forms.py,sha256=8z28_rln9duvJ7IvKx9IFO9DAMe3cU2bv0FQRdiMFEw,511
|
|
65
66
|
udata/core/badges/models.py,sha256=cQBpLudR-cRxlbN68z_05UbX0BXRu97n1vMMdat4Ry4,3176
|
|
66
67
|
udata/core/badges/permissions.py,sha256=5jFKFG4OlVp0pL0xSa7AGO0Ttn0QMsy9xEY2jTfKVmE,552
|
|
@@ -78,8 +79,8 @@ udata/core/contact_point/models.py,sha256=iwXsJgmsRiLWOaUbSqZe7Oyjcr6W6zhGwrmVzo
|
|
|
78
79
|
udata/core/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
79
80
|
udata/core/dataset/actions.py,sha256=3pzBg_qOR-w7fwPpTOKUHXWC9lkjALbOn1UQFmmT-s0,1199
|
|
80
81
|
udata/core/dataset/activities.py,sha256=qQnHNL0hOB1IGtQl7JsnVOiUsWT0gm-pts9uDyR3bvU,1536
|
|
81
|
-
udata/core/dataset/api.py,sha256=
|
|
82
|
-
udata/core/dataset/api_fields.py,sha256=
|
|
82
|
+
udata/core/dataset/api.py,sha256=C6EGhJswCb2hHfKigbxFQbfzpzgvWm8VD3c4O-ZQFso,28789
|
|
83
|
+
udata/core/dataset/api_fields.py,sha256=Cgd_BPlAhP0nTzocOZWWEM-LvKcgCxYE2x00oAiKFYM,15405
|
|
83
84
|
udata/core/dataset/apiv2.py,sha256=XzEwtmC53Mw0mq8NEMCD2cN52pCmrUkPu0adUj4wGyw,15751
|
|
84
85
|
udata/core/dataset/commands.py,sha256=dbK7gMYH4G6pOPiYtmL3yomzg5MGqTaG97_UM9Smu_k,3712
|
|
85
86
|
udata/core/dataset/constants.py,sha256=Twml-I5mGiIdTkiDV1D4bXqi_TcNhcEc-QFxorUKHM4,3138
|
|
@@ -127,8 +128,8 @@ udata/core/metrics/signals.py,sha256=Xs_k-9lWzsoZU5Joli-41FNgvIVvbAejkjSFB6DHxh0
|
|
|
127
128
|
udata/core/metrics/tasks.py,sha256=Z7La3-zPB5j6qJoPKr_MgjNZhqscZCmNLPa711ZBkdY,797
|
|
128
129
|
udata/core/organization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
129
130
|
udata/core/organization/activities.py,sha256=fOBujmduVoTxJph2C6Z4qHeQHOaJT9IsZooEDCWC4BA,1140
|
|
130
|
-
udata/core/organization/api.py,sha256=
|
|
131
|
-
udata/core/organization/api_fields.py,sha256=
|
|
131
|
+
udata/core/organization/api.py,sha256=K9Lnps_gxxt_z1ImLZDBnY1eeh6Zpl7x50YoXcPzJ_k,17479
|
|
132
|
+
udata/core/organization/api_fields.py,sha256=UV3DE7DoWvrRs2k-VnuJ2c7-mMTt93eVX8o-K_9IvXQ,5403
|
|
132
133
|
udata/core/organization/apiv2.py,sha256=VAU_y9Zz-VhBgS-LWVbGOEZdSt3b44nZd5bzTV2wU8g,3206
|
|
133
134
|
udata/core/organization/commands.py,sha256=FaSYxyWfQDR5tWvrAXmwcF2VMREOC13XTK8DD4vp_sY,1623
|
|
134
135
|
udata/core/organization/constants.py,sha256=XGVnItrJTG0hcVKRK5sPmx44KHC9r_EKtj_y0MmBt0o,563
|
|
@@ -154,8 +155,8 @@ udata/core/post/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
154
155
|
udata/core/post/tests/test_api.py,sha256=LSJQQDUtUVdpwZNpnJaX3yNQYyjkjTTyO7mHnR5DR_I,3948
|
|
155
156
|
udata/core/reuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
156
157
|
udata/core/reuse/activities.py,sha256=rdl_CR3RJPBMonsHYmPnPVDvCYozNdXN2H1ILrTItNQ,1417
|
|
157
|
-
udata/core/reuse/api.py,sha256=
|
|
158
|
-
udata/core/reuse/api_fields.py,sha256=
|
|
158
|
+
udata/core/reuse/api.py,sha256=72oJxmwziqvuFhxcuXy-5ckhQo39t65hp4eqvSqbQ6o,10237
|
|
159
|
+
udata/core/reuse/api_fields.py,sha256=aU5L7-jzywSZlO4cq2DfvvYmfmGMWcBimp959AVV3Zg,4871
|
|
159
160
|
udata/core/reuse/apiv2.py,sha256=Op4f6pSMdUuLcCwNadojJfHfU6UYohrzSxlJbRn3wHc,824
|
|
160
161
|
udata/core/reuse/constants.py,sha256=pbCR1xX9v4tdewlOx8bgNmy1-5V9OXIbpNjJivnQ--A,1215
|
|
161
162
|
udata/core/reuse/csv.py,sha256=k-syWGC7hJnqfaOtPRFFn8P8skCDcrnMWNWbJ3fUyXo,727
|
|
@@ -674,9 +675,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=zCVMB-a4-mLM1jNyYMk58rgVRaVIwQ
|
|
|
674
675
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=avfWczvlLBKSohyB55-4TLmUGMU_Rze4XmAo4OTk2v0,43513
|
|
675
676
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=ScuqdpaV4y1ZIpBAEfxeaKdzkyGZL0mJmKMoG6w0iRQ,28553
|
|
676
677
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=QpgEXh1eHjztPa7oNLXd_sds1DC95A-STTtZyTE4m-E,50093
|
|
677
|
-
udata-7.0.7.
|
|
678
|
-
udata-7.0.7.
|
|
679
|
-
udata-7.0.7.
|
|
680
|
-
udata-7.0.7.
|
|
681
|
-
udata-7.0.7.
|
|
682
|
-
udata-7.0.7.
|
|
678
|
+
udata-7.0.7.dev28563.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
679
|
+
udata-7.0.7.dev28563.dist-info/METADATA,sha256=KZHUTI9jdBeFx_oUfJDWme-H3_yqJicZlHsk7M57Hm8,120895
|
|
680
|
+
udata-7.0.7.dev28563.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
|
681
|
+
udata-7.0.7.dev28563.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
|
|
682
|
+
udata-7.0.7.dev28563.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
683
|
+
udata-7.0.7.dev28563.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|