udata 7.0.4.dev27646__py2.py3-none-any.whl → 7.0.4.dev27665__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/dataset/models.py +9 -1
- {udata-7.0.4.dev27646.dist-info → udata-7.0.4.dev27665.dist-info}/METADATA +2 -2
- {udata-7.0.4.dev27646.dist-info → udata-7.0.4.dev27665.dist-info}/RECORD +7 -7
- {udata-7.0.4.dev27646.dist-info → udata-7.0.4.dev27665.dist-info}/LICENSE +0 -0
- {udata-7.0.4.dev27646.dist-info → udata-7.0.4.dev27665.dist-info}/WHEEL +0 -0
- {udata-7.0.4.dev27646.dist-info → udata-7.0.4.dev27665.dist-info}/entry_points.txt +0 -0
- {udata-7.0.4.dev27646.dist-info → udata-7.0.4.dev27665.dist-info}/top_level.txt +0 -0
udata/core/dataset/models.py
CHANGED
|
@@ -192,13 +192,21 @@ class Schema(db.EmbeddedDocument):
|
|
|
192
192
|
# Nothing more to do since an URL can point to anywhere and have a random name/version
|
|
193
193
|
return
|
|
194
194
|
|
|
195
|
+
# All the following checks are only run if there is
|
|
196
|
+
# some schemas in the catalog. If there is no catalog
|
|
197
|
+
# or no schema in the catalog we do not check the validity
|
|
198
|
+
# of the name and version
|
|
199
|
+
catalog_schemas = ResourceSchema.all()
|
|
200
|
+
if not catalog_schemas:
|
|
201
|
+
return
|
|
202
|
+
|
|
195
203
|
# We know this schema so we can do some checks
|
|
196
204
|
existing_schema = ResourceSchema.get_schema_by_name(self.name)
|
|
197
205
|
if not existing_schema:
|
|
198
206
|
message = _('Schema name "{schema}" is not an allowed value. Allowed values: {values}')
|
|
199
207
|
raise FieldValidationError(message.format(
|
|
200
208
|
schema=self.name,
|
|
201
|
-
values=', '.join(map(lambda schema: schema['name'],
|
|
209
|
+
values=', '.join(map(lambda schema: schema['name'], catalog_schemas))
|
|
202
210
|
), field='name')
|
|
203
211
|
|
|
204
212
|
if self.version:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 7.0.4.
|
|
3
|
+
Version: 7.0.4.dev27665
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -141,7 +141,7 @@ It is collectively taken care of by members of the
|
|
|
141
141
|
- Organization can nom define a custom metadata of a choosen type
|
|
142
142
|
- Dataset belonging to the organization can assign a value to the defined metadata
|
|
143
143
|
- Metadata value must match the choosen type by the organization
|
|
144
|
-
- Harvest DCAT conformsTo into schemas for resources and datasets
|
|
144
|
+
- Harvest DCAT conformsTo into schemas for resources and datasets[#2949](https://github.com/opendatateam/udata/pull/2949) [#2970](https://github.com/opendatateam/udata/pull/2970)
|
|
145
145
|
- Better reporting in spam detection (show the writer of the discussion/message) [#2965](https://github.com/opendatateam/udata/pull/2965)
|
|
146
146
|
- Fix: spam lang detection not lowering input resulting in false positives [#2965](https://github.com/opendatateam/udata/pull/2965)
|
|
147
147
|
- Fix: do not send mail about discussions when there is no owner / no organisation members [#2962](https://github.com/opendatateam/udata/pull/2962)
|
|
@@ -87,7 +87,7 @@ udata/core/dataset/events.py,sha256=0oGVNWrvsYKfvN4c20WeYo3Fx5Bul9SDRAjLs5pU9Os,
|
|
|
87
87
|
udata/core/dataset/exceptions.py,sha256=uI_NvZRZMr_MtYQBYdLD8tk-BIUeDDfMMcrWwqV7mi8,494
|
|
88
88
|
udata/core/dataset/factories.py,sha256=yWW6pb-fcLxUvAVTn7hNJ4ZIcihiaclWu5TDfeCJWTE,2807
|
|
89
89
|
udata/core/dataset/forms.py,sha256=4asWiQCZdKMCfZxXAxzUHEOaODYe66v5H9CCfTR9j2A,6126
|
|
90
|
-
udata/core/dataset/models.py,sha256=
|
|
90
|
+
udata/core/dataset/models.py,sha256=iuUsb9foPKZqFw2XcMmHj2n3Q-XuFqAiL4EcnYrPdNc,39155
|
|
91
91
|
udata/core/dataset/permissions.py,sha256=3F2J7le3_rEYNhh88o3hSRWHAAt01_yHJM6RPmvCrRo,1090
|
|
92
92
|
udata/core/dataset/preview.py,sha256=puPKT3fBD7ezAcT6owh0JK1_rGNDFZOqgT223qGn3LY,2597
|
|
93
93
|
udata/core/dataset/rdf.py,sha256=JOXn8K6RE3K3A1mY02CAwkPSk2sO-TxGPDsmDQX-TQE,19287
|
|
@@ -649,9 +649,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=sbRJJcf9afMBJx3L8qGez5XoILhNMI
|
|
|
649
649
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=sv-oskJPJ6SStK6TWA-Wa28ssmrJweWLw4M__Sln-_Q,41902
|
|
650
650
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=YsXkmamsMG_H0I4tfmP_9JfXxyplpJHxFwIZr6jW9eU,29088
|
|
651
651
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=QsVYsk6FRVtKmfxKv427qPmYcw2mx_wuE79aaWNeaYA,48743
|
|
652
|
-
udata-7.0.4.
|
|
653
|
-
udata-7.0.4.
|
|
654
|
-
udata-7.0.4.
|
|
655
|
-
udata-7.0.4.
|
|
656
|
-
udata-7.0.4.
|
|
657
|
-
udata-7.0.4.
|
|
652
|
+
udata-7.0.4.dev27665.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
653
|
+
udata-7.0.4.dev27665.dist-info/METADATA,sha256=p_mPO9yoEvw-4J1JKQRWLnYMhLg4RLfTWogdNa2Ey2s,117208
|
|
654
|
+
udata-7.0.4.dev27665.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
|
655
|
+
udata-7.0.4.dev27665.dist-info/entry_points.txt,sha256=ZqIUHhOth0MMQvMIeuhODbUCDwjR-Hvo7PaKrMwTKuQ,384
|
|
656
|
+
udata-7.0.4.dev27665.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
657
|
+
udata-7.0.4.dev27665.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|