udata 6.2.1.dev26909__py2.py3-none-any.whl → 6.2.1.dev26916__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/rdf.py +1 -0
- udata/harvest/tests/test_dcat_backend.py +1 -0
- {udata-6.2.1.dev26909.dist-info → udata-6.2.1.dev26916.dist-info}/METADATA +2 -1
- {udata-6.2.1.dev26909.dist-info → udata-6.2.1.dev26916.dist-info}/RECORD +8 -8
- {udata-6.2.1.dev26909.dist-info → udata-6.2.1.dev26916.dist-info}/LICENSE +0 -0
- {udata-6.2.1.dev26909.dist-info → udata-6.2.1.dev26916.dist-info}/WHEEL +0 -0
- {udata-6.2.1.dev26909.dist-info → udata-6.2.1.dev26916.dist-info}/entry_points.txt +0 -0
- {udata-6.2.1.dev26909.dist-info → udata-6.2.1.dev26916.dist-info}/top_level.txt +0 -0
udata/core/dataset/rdf.py
CHANGED
|
@@ -424,6 +424,7 @@ def resource_from_rdf(graph_or_distrib, dataset=None):
|
|
|
424
424
|
resource = Resource()
|
|
425
425
|
if dataset:
|
|
426
426
|
dataset.resources.append(resource)
|
|
427
|
+
resource.filetype = 'remote'
|
|
427
428
|
resource.title = title_from_rdf(distrib, url)
|
|
428
429
|
resource.url = url
|
|
429
430
|
resource.description = sanitize_html(distrib.value(DCT.description))
|
|
@@ -300,6 +300,7 @@ class DcatBackendTest:
|
|
|
300
300
|
assert len(dataset.resources) == 2
|
|
301
301
|
|
|
302
302
|
resource_1 = next(res for res in dataset.resources if res.title == 'Resource 1-1')
|
|
303
|
+
assert resource_1.filetype == 'remote'
|
|
303
304
|
# Format is a IANA URI
|
|
304
305
|
assert resource_1.format == 'json'
|
|
305
306
|
assert resource_1.mime == 'application/json'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 6.2.1.
|
|
3
|
+
Version: 6.2.1.dev26916
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -140,6 +140,7 @@ It is collectively taken care of by members of the
|
|
|
140
140
|
- Topics: API v2 endpoints [#2913](https://github.com/opendatateam/udata/pull/2913)
|
|
141
141
|
- Allow for discussions on Topics [#2922](https://github.com/opendatateam/udata/pull/2922)
|
|
142
142
|
- Raise for status on DCAT harvester calls [#2927](https://github.com/opendatateam/udata/pull/2927)
|
|
143
|
+
- Make sure harvested resources are marked as remote [#2931](https://github.com/opendatateam/udata/pull/2931)
|
|
143
144
|
- Use GET and POST harvest BaseBackend utility to have user-agent [#2930](https://github.com/opendatateam/udata/pull/2930)
|
|
144
145
|
- Use LazyReferenceField on Topic datasets and reuses [#2924](https://github.com/opendatateam/udata/pull/2924)
|
|
145
146
|
- :warning: **breaking change** Geozone refactor [#2878](https://github.com/opendatateam/udata/pull/2878):
|
|
@@ -84,7 +84,7 @@ udata/core/dataset/forms.py,sha256=HXlH9lKTc2mXQi1L-ulBokJPBCGLKXYxG5iB0-kM9-w,6
|
|
|
84
84
|
udata/core/dataset/models.py,sha256=GDagMZM2FKJLDxg6bD8zu_Hiz0GfLeBrNB5alScLG5U,33676
|
|
85
85
|
udata/core/dataset/permissions.py,sha256=3F2J7le3_rEYNhh88o3hSRWHAAt01_yHJM6RPmvCrRo,1090
|
|
86
86
|
udata/core/dataset/preview.py,sha256=puPKT3fBD7ezAcT6owh0JK1_rGNDFZOqgT223qGn3LY,2597
|
|
87
|
-
udata/core/dataset/rdf.py,sha256=
|
|
87
|
+
udata/core/dataset/rdf.py,sha256=6SDNXv9I45f60ZmfA0Ko5V1gQgdRzm4l3CjySeyb8HM,17592
|
|
88
88
|
udata/core/dataset/search.py,sha256=6Za7DMU18kfTMKELHCTjy13enbVRuFt8zyqyEkBrQg0,5561
|
|
89
89
|
udata/core/dataset/signals.py,sha256=TK6dfrOUitZZkGGOh6XmhYqYvIjzZpI70JTLV4k-JRM,161
|
|
90
90
|
udata/core/dataset/tasks.py,sha256=VB1sQ6Fwbax46IRLGyZUDPGgGOWBYrzAlKzV3npDCyM,8412
|
|
@@ -256,7 +256,7 @@ udata/harvest/tests/factories.py,sha256=l1FRbM6-iblzIm4HDwQ23EnmoSDguQFGN4l_ygzS
|
|
|
256
256
|
udata/harvest/tests/test_actions.py,sha256=7xSpouCAcf5p_bd38zHCyPN7sKWUUZXA7IlpI-yNVrQ,27603
|
|
257
257
|
udata/harvest/tests/test_api.py,sha256=QXhseHfnkBEmMbIJzroMdDYGLDj6Njal1s-2sn0xhEM,14888
|
|
258
258
|
udata/harvest/tests/test_base_backend.py,sha256=JA8Df1Eu-lEPLZfxyK81bsmT6exOjV_3PtKHJekAp5g,12092
|
|
259
|
-
udata/harvest/tests/test_dcat_backend.py,sha256=
|
|
259
|
+
udata/harvest/tests/test_dcat_backend.py,sha256=cOtRJoMgU4skhS5cNfQw6NaTS5gEx-OvudqUKvE_v98,20520
|
|
260
260
|
udata/harvest/tests/test_filters.py,sha256=V2HFZlexIJa6r1DX6g2ktvIgjg4gSY11QPfPOd3_Oug,2370
|
|
261
261
|
udata/harvest/tests/test_models.py,sha256=Wh2_Bwvfdrj0Fsh8Q8j4yTfLwmYv5WiGbGhrvf6zbII,905
|
|
262
262
|
udata/harvest/tests/test_notifications.py,sha256=ZwtwioittW3XcZc0x6zbHjs1dVaAxPytlVymnJa5w0E,817
|
|
@@ -630,9 +630,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=N4XoaycpcOJnsi2qJobZa8lEAYVpu7
|
|
|
630
630
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=sv-oskJPJ6SStK6TWA-Wa28ssmrJweWLw4M__Sln-_Q,41902
|
|
631
631
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=TfrjXLjrnuIo5N3Px0mMnrlWa-n4HmJUBP5pbLsGjkA,29086
|
|
632
632
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=QsVYsk6FRVtKmfxKv427qPmYcw2mx_wuE79aaWNeaYA,48743
|
|
633
|
-
udata-6.2.1.
|
|
634
|
-
udata-6.2.1.
|
|
635
|
-
udata-6.2.1.
|
|
636
|
-
udata-6.2.1.
|
|
637
|
-
udata-6.2.1.
|
|
638
|
-
udata-6.2.1.
|
|
633
|
+
udata-6.2.1.dev26916.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
634
|
+
udata-6.2.1.dev26916.dist-info/METADATA,sha256=QtQlxYg7ca2tQ13cZBYm6_gPH51MK4zG-wAplZW2vhY,113253
|
|
635
|
+
udata-6.2.1.dev26916.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
|
636
|
+
udata-6.2.1.dev26916.dist-info/entry_points.txt,sha256=ZqIUHhOth0MMQvMIeuhODbUCDwjR-Hvo7PaKrMwTKuQ,384
|
|
637
|
+
udata-6.2.1.dev26916.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
638
|
+
udata-6.2.1.dev26916.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|