pywmdr 0.2.dev8__py3-none-any.whl → 0.2.dev9__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.
- pywmdr/pygeoapi_plugin.py +7 -2
- {pywmdr-0.2.dev8.dist-info → pywmdr-0.2.dev9.dist-info}/METADATA +1 -1
- {pywmdr-0.2.dev8.dist-info → pywmdr-0.2.dev9.dist-info}/RECORD +7 -7
- {pywmdr-0.2.dev8.dist-info → pywmdr-0.2.dev9.dist-info}/WHEEL +0 -0
- {pywmdr-0.2.dev8.dist-info → pywmdr-0.2.dev9.dist-info}/entry_points.txt +0 -0
- {pywmdr-0.2.dev8.dist-info → pywmdr-0.2.dev9.dist-info}/licenses/LICENSE.md +0 -0
- {pywmdr-0.2.dev8.dist-info → pywmdr-0.2.dev9.dist-info}/top_level.txt +0 -0
pywmdr/pygeoapi_plugin.py
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
# pywmdr-wmdr2-migrate:
|
|
41
41
|
# type: process
|
|
42
42
|
# processor:
|
|
43
|
-
# name: pywmdr.pygeoapi_plugin.
|
|
43
|
+
# name: pywmdr.pygeoapi_plugin.WMDR2MigrateProcessor
|
|
44
44
|
#
|
|
45
45
|
#
|
|
46
46
|
# 3. (re)start pygeoapi
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
# provide a developer-friendly interface to test and run requests
|
|
55
55
|
#
|
|
56
56
|
|
|
57
|
+
import html
|
|
57
58
|
import json
|
|
58
59
|
import logging
|
|
59
60
|
|
|
@@ -246,9 +247,13 @@ class WMDR2MigrateProcessor(BaseProcessor):
|
|
|
246
247
|
record = urlopen_(record).read()
|
|
247
248
|
else:
|
|
248
249
|
LOGGER.debug('Record is inline')
|
|
250
|
+
record = html.unescape(record)
|
|
249
251
|
|
|
250
252
|
LOGGER.debug('Running ETS against record')
|
|
251
|
-
|
|
253
|
+
migration_ = Migration(record)
|
|
254
|
+
response = migration_.migrate()
|
|
255
|
+
if migration_.warnings:
|
|
256
|
+
response['_errors'] = migration_.warnings
|
|
252
257
|
|
|
253
258
|
return mimetype, response
|
|
254
259
|
|
|
@@ -5,16 +5,16 @@ pywmdr/codelists.py,sha256=UMYqy4Tk8GLulqMjE3xouZMWCUpnW1qHbuwZ1CiACpA,3694
|
|
|
5
5
|
pywmdr/errors.py,sha256=Uu2J6vmTjaWuNJaW-mtdZ_KCztc9x4wjaLRVDZP6Lk0,1176
|
|
6
6
|
pywmdr/ets.py,sha256=I1JeheXMCsPtRXjf5ay8I3MZFrrsDtj5k0XT68XCOOY,2076
|
|
7
7
|
pywmdr/migrations.py,sha256=FxhJYLQE6_BXLpEMZAWQRu1nIGDBGlt88HkcpbPWUwc,14328
|
|
8
|
-
pywmdr/pygeoapi_plugin.py,sha256=
|
|
8
|
+
pywmdr/pygeoapi_plugin.py,sha256=Tchff8jpM4j2r-OU6xfdHIRCp5bZy7Tj03nuFsqxBc8,7447
|
|
9
9
|
pywmdr/util.py,sha256=LE_Ds6OuG7vNQxjFQcogWiPD5CNQyHhqIXeW6TNXJZE,2639
|
|
10
10
|
pywmdr/resources/0-20000-0-87582.xml,sha256=GoWENifry0TLNPK1FhcFDFaSBPd3rmJMLJ--kMqxyP8,185897
|
|
11
11
|
pywmdr/resources/0-20008-0-THE.json,sha256=luAjCrxbnwq4x0nwqm2vyx8d5rXmkMeGwVCQ2w-gaXg,5873
|
|
12
12
|
pywmdr/resources/ets-report.json,sha256=VwZohaD_EloSlwhYXxnj08Z3ckfbFYudLc2dWwxvlus,2243
|
|
13
13
|
pywmdr/wmdr2/__init__.py,sha256=VK88WG3wpt5RqksGgutMnr02OhUlksWcoAnoeSRRWic,1035
|
|
14
14
|
pywmdr/wmdr2/ets.py,sha256=8M5zyubMfiQvArl_-LoGlH8dhDiY-fIAmkIsub-N3JM,7817
|
|
15
|
-
pywmdr-0.2.
|
|
16
|
-
pywmdr-0.2.
|
|
17
|
-
pywmdr-0.2.
|
|
18
|
-
pywmdr-0.2.
|
|
19
|
-
pywmdr-0.2.
|
|
20
|
-
pywmdr-0.2.
|
|
15
|
+
pywmdr-0.2.dev9.dist-info/licenses/LICENSE.md,sha256=Q8E0TXZpH75ydPcip7DXr21Y3uwJNgQUFv3ipMXwPkw,839
|
|
16
|
+
pywmdr-0.2.dev9.dist-info/METADATA,sha256=DO-A6PcPd3R-ozwyPCMWAkT2fVa4pElaTVjzguxTvgQ,5444
|
|
17
|
+
pywmdr-0.2.dev9.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
18
|
+
pywmdr-0.2.dev9.dist-info/entry_points.txt,sha256=Ga7GlkDlThWwprQDc5OawyWtV_RT9FXilgXjwKacynU,38
|
|
19
|
+
pywmdr-0.2.dev9.dist-info/top_level.txt,sha256=_Zdw0CS7tVYk-CJZmu9xEqIzOuY98RsI6CUMh8Kh818,7
|
|
20
|
+
pywmdr-0.2.dev9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|