ckanext-versioned-tiledmap 2.3.0__tar.gz → 2.3.2__tar.gz
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.
- {ckanext_versioned_tiledmap-2.3.0/ckanext_versioned_tiledmap.egg-info → ckanext_versioned_tiledmap-2.3.2}/PKG-INFO +4 -3
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/README.md +2 -2
- ckanext_versioned_tiledmap-2.3.2/ckanext/tiledmap/lib/utils.py +35 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/plugin.py +15 -19
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2/ckanext_versioned_tiledmap.egg-info}/PKG-INFO +4 -3
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext_versioned_tiledmap.egg-info/requires.txt +1 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/pyproject.toml +4 -3
- ckanext_versioned_tiledmap-2.3.0/ckanext/tiledmap/lib/utils.py +0 -13
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/LICENSE +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/__init__.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/__init__.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/config.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/lib/__init__.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/lib/helpers.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/lib/validators.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/routes/__init__.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/routes/_helpers.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/routes/map.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/less/maps.less +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/ckanfilterurl.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/drawshape_control.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/fullscreen_control.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/map_view.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/maptype_control.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/minimap_control.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/pointinfo_plugin.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/sidebar_view.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/tiledmap_module.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/scripts/tooltip_plugin.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/backbone/1.0.0/backbone.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/jquery/1.7.1/jquery.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/jquery/1.7.1/jquery.min.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet/leaflet-src.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet/leaflet.css +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet/leaflet.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.draw/leaflet.draw-src.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.draw/leaflet.draw.css +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.minimap/Control.MiniMap.css +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.minimap/Control.MiniMap.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.minimap/LICENSE.txt +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.minimap/readme.md +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.utfgrid/leaflet.utfgrid.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/leaflet.utfgrid/leaflet.utfgrid.queue.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/mustache/0.5.0-dev/mustache.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/mustache/0.5.0-dev/mustache.min.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/terraformer/terraformer-wkt-parser.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/terraformer/terraformer.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/underscore/1.4.2/underscore.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/vendor/underscore/1.4.2/underscore.min.js +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/assets/webassets.yml +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/data/countries.geojson +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet/layers-2x.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet/layers.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet/marker-icon-2x.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet/marker-icon.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet/marker-shadow.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet.draw/spritesheet-2x.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet.draw/spritesheet.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/public/vendor/leaflet/leaflet.minimap/toggle.png +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/templates/map_form.html +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/templates/map_view.html +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/templates/point_detail.dwc.mustache +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/templates/point_detail.mustache +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/templates/point_detail_hover.dwc.mustache +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/theme/templates/point_detail_hover.mustache +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext_versioned_tiledmap.egg-info/SOURCES.txt +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext_versioned_tiledmap.egg-info/dependency_links.txt +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext_versioned_tiledmap.egg-info/entry_points.txt +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext_versioned_tiledmap.egg-info/not-zip-safe +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext_versioned_tiledmap.egg-info/top_level.txt +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/docs/_scripts/gen_api_pages.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/setup.cfg +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/setup.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/tests/test_helpers.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/tests/test_route_helpers.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/tests/test_utils.py +0 -0
- {ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/tests/test_validators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ckanext-versioned-tiledmap
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Summary: A CKAN extension with a map view for versioned-datastore backed resources.
|
|
5
5
|
Author-email: Natural History Museum <data@nhm.ac.uk>
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -19,6 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: ckanext-versioned-datastore>=3.7.0
|
|
21
21
|
Requires-Dist: ckantools>=0.3.0
|
|
22
|
+
Requires-Dist: cachetools>=4.2.4
|
|
22
23
|
Provides-Extra: test
|
|
23
24
|
Requires-Dist: mock; extra == "test"
|
|
24
25
|
Requires-Dist: pytest>=4.6.5; extra == "test"
|
|
@@ -154,7 +155,7 @@ To run the tests against ckan 2.9.x on Python3:
|
|
|
154
155
|
|
|
155
156
|
1. Build the required images:
|
|
156
157
|
```shell
|
|
157
|
-
docker
|
|
158
|
+
docker compose build
|
|
158
159
|
```
|
|
159
160
|
|
|
160
161
|
2. Then run the tests.
|
|
@@ -162,7 +163,7 @@ To run the tests against ckan 2.9.x on Python3:
|
|
|
162
163
|
configuration, so you should only need to rebuild the ckan image if you change the extension's
|
|
163
164
|
dependencies.
|
|
164
165
|
```shell
|
|
165
|
-
docker
|
|
166
|
+
docker compose run ckan
|
|
166
167
|
```
|
|
167
168
|
|
|
168
169
|
<!--testing-end-->
|
|
@@ -127,7 +127,7 @@ To run the tests against ckan 2.9.x on Python3:
|
|
|
127
127
|
|
|
128
128
|
1. Build the required images:
|
|
129
129
|
```shell
|
|
130
|
-
docker
|
|
130
|
+
docker compose build
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
2. Then run the tests.
|
|
@@ -135,7 +135,7 @@ To run the tests against ckan 2.9.x on Python3:
|
|
|
135
135
|
configuration, so you should only need to rebuild the ckan image if you change the extension's
|
|
136
136
|
dependencies.
|
|
137
137
|
```shell
|
|
138
|
-
docker
|
|
138
|
+
docker compose run ckan
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
<!--testing-end-->
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# encoding: utf-8
|
|
3
|
+
#
|
|
4
|
+
# This file is part of a project
|
|
5
|
+
# Created by the Natural History Museum in London, UK
|
|
6
|
+
|
|
7
|
+
from ckan.plugins import toolkit
|
|
8
|
+
import urllib.request
|
|
9
|
+
from cachetools import cached, TTLCache
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def get_resource_datastore_fields(resource_id):
|
|
13
|
+
data = {'resource_id': resource_id, 'limit': 0}
|
|
14
|
+
all_fields = toolkit.get_action('datastore_search')({}, data)['fields']
|
|
15
|
+
return set(field['id'] for field in all_fields)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@cached(cache=TTLCache(maxsize=10, ttl=300))
|
|
19
|
+
def get_tileserver_status():
|
|
20
|
+
tileserver_url = toolkit.config.get('versioned_tilemap.tile_server')
|
|
21
|
+
|
|
22
|
+
tileserver_response_text = 'unknown'
|
|
23
|
+
|
|
24
|
+
if tileserver_url:
|
|
25
|
+
try:
|
|
26
|
+
with urllib.request.urlopen(tileserver_url + '/status') as response:
|
|
27
|
+
tileserver_response = response.read().decode()
|
|
28
|
+
except Exception as e:
|
|
29
|
+
tileserver_response = ''
|
|
30
|
+
if tileserver_response == 'OK':
|
|
31
|
+
tileserver_response_text = 'available'
|
|
32
|
+
else:
|
|
33
|
+
tileserver_response_text = 'unavailable'
|
|
34
|
+
|
|
35
|
+
return tileserver_response_text
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/plugin.py
RENAMED
|
@@ -11,7 +11,7 @@ from ckanext.tiledmap import routes
|
|
|
11
11
|
from ckanext.tiledmap.config import config as plugin_config
|
|
12
12
|
from ckanext.tiledmap.lib import validators
|
|
13
13
|
from ckanext.tiledmap.lib.helpers import mustache_wrapper, dwc_field_title
|
|
14
|
-
from ckanext.tiledmap.lib.utils import get_resource_datastore_fields
|
|
14
|
+
from ckanext.tiledmap.lib.utils import get_resource_datastore_fields, get_tileserver_status
|
|
15
15
|
import urllib.request
|
|
16
16
|
|
|
17
17
|
try:
|
|
@@ -160,28 +160,24 @@ class VersionedTiledMapPlugin(SingletonPlugin):
|
|
|
160
160
|
|
|
161
161
|
## IStatus
|
|
162
162
|
def modify_status_reports(self, status_reports):
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
tileserver_state = 'good'
|
|
177
|
-
else:
|
|
178
|
-
tileserver_text = toolkit._('unavailable')
|
|
179
|
-
tileserver_state = 'bad'
|
|
163
|
+
tileserver_text = get_tileserver_status()
|
|
164
|
+
|
|
165
|
+
# report_value should be the same as toolkit._(tileserver_text) but is defined
|
|
166
|
+
# explicitly just in case it's returning something unexpected
|
|
167
|
+
if tileserver_text == 'unknown':
|
|
168
|
+
report_value = toolkit._('unknown')
|
|
169
|
+
tileserver_state = 'neutral'
|
|
170
|
+
elif tileserver_text == 'available':
|
|
171
|
+
report_value = toolkit._('available')
|
|
172
|
+
tileserver_state = 'good'
|
|
173
|
+
else:
|
|
174
|
+
report_value = toolkit._('unavailable')
|
|
175
|
+
tileserver_state = 'bad'
|
|
180
176
|
|
|
181
177
|
status_reports.append(
|
|
182
178
|
{
|
|
183
179
|
'label': toolkit._('Maps'),
|
|
184
|
-
'value':
|
|
180
|
+
'value': report_value,
|
|
185
181
|
'help': toolkit._(
|
|
186
182
|
'Connection to the server that plots data points on maps'
|
|
187
183
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ckanext-versioned-tiledmap
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Summary: A CKAN extension with a map view for versioned-datastore backed resources.
|
|
5
5
|
Author-email: Natural History Museum <data@nhm.ac.uk>
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -19,6 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: ckanext-versioned-datastore>=3.7.0
|
|
21
21
|
Requires-Dist: ckantools>=0.3.0
|
|
22
|
+
Requires-Dist: cachetools>=4.2.4
|
|
22
23
|
Provides-Extra: test
|
|
23
24
|
Requires-Dist: mock; extra == "test"
|
|
24
25
|
Requires-Dist: pytest>=4.6.5; extra == "test"
|
|
@@ -154,7 +155,7 @@ To run the tests against ckan 2.9.x on Python3:
|
|
|
154
155
|
|
|
155
156
|
1. Build the required images:
|
|
156
157
|
```shell
|
|
157
|
-
docker
|
|
158
|
+
docker compose build
|
|
158
159
|
```
|
|
159
160
|
|
|
160
161
|
2. Then run the tests.
|
|
@@ -162,7 +163,7 @@ To run the tests against ckan 2.9.x on Python3:
|
|
|
162
163
|
configuration, so you should only need to rebuild the ckan image if you change the extension's
|
|
163
164
|
dependencies.
|
|
164
165
|
```shell
|
|
165
|
-
docker
|
|
166
|
+
docker compose run ckan
|
|
166
167
|
```
|
|
167
168
|
|
|
168
169
|
<!--testing-end-->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ckanext-versioned-tiledmap"
|
|
3
|
-
version = "2.3.
|
|
3
|
+
version = "2.3.2"
|
|
4
4
|
description = "A CKAN extension with a map view for versioned-datastore backed resources."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.6"
|
|
@@ -20,7 +20,8 @@ classifiers = [
|
|
|
20
20
|
]
|
|
21
21
|
dependencies = [
|
|
22
22
|
"ckanext-versioned-datastore>=3.7.0",
|
|
23
|
-
"ckantools>=0.3.0"
|
|
23
|
+
"ckantools>=0.3.0",
|
|
24
|
+
"cachetools>=4.2.4"
|
|
24
25
|
]
|
|
25
26
|
|
|
26
27
|
[project.optional-dependencies]
|
|
@@ -56,7 +57,7 @@ exclude = ["tests", "docs"]
|
|
|
56
57
|
|
|
57
58
|
[tool.commitizen]
|
|
58
59
|
name = "cz_nhm"
|
|
59
|
-
version = "2.3.
|
|
60
|
+
version = "2.3.2"
|
|
60
61
|
tag_format = "v$version"
|
|
61
62
|
update_changelog_on_bump = true
|
|
62
63
|
changelog_incremental = true
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
# encoding: utf-8
|
|
3
|
-
#
|
|
4
|
-
# This file is part of a project
|
|
5
|
-
# Created by the Natural History Museum in London, UK
|
|
6
|
-
|
|
7
|
-
from ckan.plugins import toolkit
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def get_resource_datastore_fields(resource_id):
|
|
11
|
-
data = {'resource_id': resource_id, 'limit': 0}
|
|
12
|
-
all_fields = toolkit.get_action('datastore_search')({}, data)['fields']
|
|
13
|
-
return set(field['id'] for field in all_fields)
|
|
File without changes
|
|
File without changes
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/__init__.py
RENAMED
|
File without changes
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/ckanext/tiledmap/routes/map.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/docs/_scripts/gen_api_pages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/tests/test_route_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
{ckanext_versioned_tiledmap-2.3.0 → ckanext_versioned_tiledmap-2.3.2}/tests/test_validators.py
RENAMED
|
File without changes
|