umap-project 3.4.0b0__py3-none-any.whl → 3.4.0b1__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.
- umap/__init__.py +1 -1
- umap/context_processors.py +4 -1
- umap/static/umap/js/modules/permissions.js +4 -0
- umap/static/umap/js/modules/rendering/layers/cluster.js +3 -1
- umap/static/umap/js/modules/umap.js +1 -0
- umap/tests/test_utils.py +15 -1
- umap/utils.py +6 -0
- {umap_project-3.4.0b0.dist-info → umap_project-3.4.0b1.dist-info}/METADATA +1 -1
- {umap_project-3.4.0b0.dist-info → umap_project-3.4.0b1.dist-info}/RECORD +12 -12
- {umap_project-3.4.0b0.dist-info → umap_project-3.4.0b1.dist-info}/WHEEL +0 -0
- {umap_project-3.4.0b0.dist-info → umap_project-3.4.0b1.dist-info}/entry_points.txt +0 -0
- {umap_project-3.4.0b0.dist-info → umap_project-3.4.0b1.dist-info}/licenses/LICENSE +0 -0
umap/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "3.4.
|
|
1
|
+
VERSION = "3.4.0b1"
|
umap/context_processors.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from django.conf import settings as djsettings
|
|
2
2
|
|
|
3
3
|
from . import VERSION
|
|
4
|
+
from .utils import normalize_string
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
def settings(request):
|
|
@@ -14,7 +15,9 @@ def settings(request):
|
|
|
14
15
|
"UMAP_DEMO_SITE": djsettings.UMAP_DEMO_SITE,
|
|
15
16
|
"UMAP_HOST_INFOS": djsettings.UMAP_HOST_INFOS,
|
|
16
17
|
"UMAP_ALLOW_EDIT_PROFILE": djsettings.UMAP_ALLOW_EDIT_PROFILE,
|
|
17
|
-
"UMAP_TAGS":
|
|
18
|
+
"UMAP_TAGS": sorted(
|
|
19
|
+
djsettings.UMAP_TAGS, key=lambda item: normalize_string(str(item[1]))
|
|
20
|
+
),
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
|
|
@@ -246,6 +246,10 @@ export class MapPermissions {
|
|
|
246
246
|
)
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
pull() {
|
|
250
|
+
this.setProperties(this._umap.properties.permissions)
|
|
251
|
+
}
|
|
252
|
+
|
|
249
253
|
getShareStatusDisplay() {
|
|
250
254
|
if (this._umap.properties.share_statuses) {
|
|
251
255
|
return Object.fromEntries(this._umap.properties.share_statuses)[
|
|
@@ -281,6 +281,8 @@ export const Cluster = FeatureGroup.extend({
|
|
|
281
281
|
],
|
|
282
282
|
|
|
283
283
|
onEdit: function (field, builder) {
|
|
284
|
-
if (field === 'properties.cluster.radius'
|
|
284
|
+
if (field === 'properties.cluster.radius' || field === 'properties.color') {
|
|
285
|
+
this.redraw()
|
|
286
|
+
}
|
|
285
287
|
},
|
|
286
288
|
})
|
umap/tests/test_utils.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
5
|
+
from umap.utils import gzip_file, normalize_string
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
def test_gzip_file():
|
|
@@ -12,3 +14,15 @@ def test_gzip_file():
|
|
|
12
14
|
dest_stat = dest.stat()
|
|
13
15
|
dest.unlink()
|
|
14
16
|
assert src_stat.st_mtime == dest_stat.st_mtime
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@pytest.mark.parametrize(
|
|
20
|
+
"input,output",
|
|
21
|
+
(
|
|
22
|
+
("Vélo", "velo"),
|
|
23
|
+
("Éducation", "education"),
|
|
24
|
+
("stävänger", "stavanger"),
|
|
25
|
+
),
|
|
26
|
+
)
|
|
27
|
+
def test_normalize_string(input, output):
|
|
28
|
+
assert normalize_string(input) == output
|
umap/utils.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import gzip
|
|
2
2
|
import json
|
|
3
3
|
import os
|
|
4
|
+
import unicodedata
|
|
4
5
|
from pathlib import Path
|
|
5
6
|
|
|
6
7
|
from django.conf import settings
|
|
@@ -222,3 +223,8 @@ def collect_pictograms():
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
return pictograms
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
def normalize_string(s):
|
|
229
|
+
n = unicodedata.normalize("NFKD", s)
|
|
230
|
+
return "".join([c for c in n if not unicodedata.combining(c)]).lower()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
umap/__init__.py,sha256=
|
|
1
|
+
umap/__init__.py,sha256=yppBFNxa51KIj40zCftReowEIaDtDsisD4_1oPX-DWA,20
|
|
2
2
|
umap/admin.py,sha256=YlK4CgEWb2eFYRKiklsKouxeiQ8z_b-H2Fv2XCaiGFQ,3014
|
|
3
3
|
umap/apps.py,sha256=5ssKqPUuNJlapaBmr4LY_HDb7J1NFCT3wzythxQOOfs,109
|
|
4
4
|
umap/asgi.py,sha256=sJkGqDLgMoPkq2nMRyRE_Hz3ZLJm1X5lgXiQJu6rYt0,660
|
|
5
5
|
umap/autocomplete.py,sha256=wHxlOTHQozSQcUAYVfBIGMsgVCKT1ox9bZ0uqUk63YY,803
|
|
6
|
-
umap/context_processors.py,sha256=
|
|
6
|
+
umap/context_processors.py,sha256=y4JYCZAyqHvdk6jl5tkQiZ2y5mQOGrjwhtAf3FcImDo,820
|
|
7
7
|
umap/decorators.py,sha256=EEICH54p9swHIs_tuqt4FL-l749vk6P8AevlWFKn5zk,2477
|
|
8
8
|
umap/fields.py,sha256=c32tKWKF8aThrCXDJblwo0n9n2ET6hxBYzEupfr0B4o,900
|
|
9
9
|
umap/forms.py,sha256=i_SQ6OykKc6XFZJ5tg3rrA6r5SryOvj1WiKbIcWtD4A,3771
|
|
@@ -11,7 +11,7 @@ umap/managers.py,sha256=A5Ih92f9E3egPVCToQHYJ4wQMFSqTS6dtqzx56Fs2JU,1051
|
|
|
11
11
|
umap/middleware.py,sha256=GsIFl0St_Rk5zjpE8dpGBlD0JL2AyMrNHu8SHylqwEg,1564
|
|
12
12
|
umap/models.py,sha256=xANPE5gw3jjLartllGrc3GtEZ4en1NsG1WLS05blmRc,19914
|
|
13
13
|
umap/urls.py,sha256=evKfLGEIoc8TPfCalLeHxeQ-zD0HvUJo0Rln8n3kBps,7896
|
|
14
|
-
umap/utils.py,sha256=
|
|
14
|
+
umap/utils.py,sha256=kZ_yvEMqEh1eZlEVfTjRv9bFuB9wZZLbngVguKRKtu4,7882
|
|
15
15
|
umap/views.py,sha256=vqef2yvth3Zea_074vyIBlf5hHoFrHlfbGKxdTBLAhI,50821
|
|
16
16
|
umap/wsgi.py,sha256=IopIgnDZbCus3XpSetTHnra9VyzWi0Y2tJo-CmfTWCY,1132
|
|
17
17
|
umap/bin/__init__.py,sha256=iA3ON4A6NCpenrn3q2OgefUKF5QRFIQS-FtS0pxruI8,234
|
|
@@ -253,7 +253,7 @@ umap/static/umap/js/modules/importer.js,sha256=UEEUodCoWmrhq1ActNusz4jU6n6R3DRuh
|
|
|
253
253
|
umap/static/umap/js/modules/leaflet-configure.js,sha256=P3aD8iNGxuVNv-xW4Di4txAjNmnlpKtCCzDvPaKEdQ8,243
|
|
254
254
|
umap/static/umap/js/modules/managers.js,sha256=d44NX7SXabpGnnlRH1Oh968VNMlhbvnqASt7VcbiUdc,10459
|
|
255
255
|
umap/static/umap/js/modules/orderable.js,sha256=zDtcElZ_MVPoGba8Iv9bxOzk4vuN7C-5XVl4UomDYHE,2521
|
|
256
|
-
umap/static/umap/js/modules/permissions.js,sha256=
|
|
256
|
+
umap/static/umap/js/modules/permissions.js,sha256=ewyrOGXrvFBJH6rYRZaciZwd8I6O9xmuxnZWibKXQGg,9155
|
|
257
257
|
umap/static/umap/js/modules/printer.js,sha256=fvb44tLBiYR7TyBdXJdroYsjQOrnbzw7-6F0dBCUEGg,3607
|
|
258
258
|
umap/static/umap/js/modules/request.js,sha256=9GRJoOPbdkHL9OFP6Joaf5wzsJckPyiG2O7AxQciTik,3885
|
|
259
259
|
umap/static/umap/js/modules/rules.js,sha256=Ff20yyrQ0OfcS_UtfPbaSs9lV3f5x4ZXUFEvSBw88fk,10034
|
|
@@ -262,7 +262,7 @@ umap/static/umap/js/modules/share.js,sha256=obyh6uYy9CR7Xry3uoAJkhgGlg7-io3SHjaZ
|
|
|
262
262
|
umap/static/umap/js/modules/slideshow.js,sha256=7tmW32iuEwLXTY_4A_DmiRMjdDr5luhpJSdmbz2SXPc,3608
|
|
263
263
|
umap/static/umap/js/modules/tableeditor.js,sha256=8ZQcy_b0urXMoUUKcYW1fi1nul38jTaq95GfDyykGTI,8800
|
|
264
264
|
umap/static/umap/js/modules/templates.js,sha256=mm-3OnVcCKmPyPfNkar0HX2ynT8E4CgqU4Q3m9bDP10,4401
|
|
265
|
-
umap/static/umap/js/modules/umap.js,sha256=
|
|
265
|
+
umap/static/umap/js/modules/umap.js,sha256=GH779DT_AfTpXrefTgHjGOH-gPFs84Ab_TtDYUzpG5s,57395
|
|
266
266
|
umap/static/umap/js/modules/urls.js,sha256=76cFqycj2O8huuoYYBvxnVt2Fc2UDbgrRsiv6lQmcSY,890
|
|
267
267
|
umap/static/umap/js/modules/utils.js,sha256=yZhvc6kMsgnBTxeflcJ0eigNd0S1uOsZCzotXqqVpMA,16702
|
|
268
268
|
umap/static/umap/js/modules/data/features.js,sha256=a5hbjoJQEaKpKkT_JELmAZVcNBcfEgP7dnpY7-5XGhA,39287
|
|
@@ -285,7 +285,7 @@ umap/static/umap/js/modules/rendering/template.js,sha256=D-x6gNP5NbpZRitqfGL28VW
|
|
|
285
285
|
umap/static/umap/js/modules/rendering/ui.js,sha256=LgaDuTHm9EbdL35OOCSiMnufeOVGS8Ecu6tGW_oFHkw,17700
|
|
286
286
|
umap/static/umap/js/modules/rendering/layers/base.js,sha256=k_TlwHiGc16CFvE41-OmgjTFa99LbkG0IUKCUoZaruk,2483
|
|
287
287
|
umap/static/umap/js/modules/rendering/layers/classified.js,sha256=gYvPWJMHKWuIC2xtUI9gzuUJcVExaoYd86fxgZY2WtE,15294
|
|
288
|
-
umap/static/umap/js/modules/rendering/layers/cluster.js,sha256=
|
|
288
|
+
umap/static/umap/js/modules/rendering/layers/cluster.js,sha256=mn1-m2KGmmQv8IohoZ3zLfClwvl38Xv8zwGFyYwmQ5o,8136
|
|
289
289
|
umap/static/umap/js/modules/rendering/layers/heat.js,sha256=K_LsxnfpGImy2HlneV5nK0cBu1FxDmPNxR5VmsV4LaM,4975
|
|
290
290
|
umap/static/umap/js/modules/sync/engine.js,sha256=LDB7HHCmfVb0Cz30yVXBSV0f-1CGG5bkzrPtaT5RePM,18390
|
|
291
291
|
umap/static/umap/js/modules/sync/hlc.js,sha256=XeJz3x7qiDz7v-mcgGIynj5ks34FpWx_oSPUPFd_ZGA,2991
|
|
@@ -531,7 +531,7 @@ umap/tests/test_statics.py,sha256=xKuxT8Xj5Ii7gKISuiSfDj7dpjmJ2Ierby3Lg-haZCg,12
|
|
|
531
531
|
umap/tests/test_switch_user.py,sha256=MzTBxcPVm8X0R4gBkBL_wntznOyEn0ixJSEiQMvaxGo,1255
|
|
532
532
|
umap/tests/test_team_views.py,sha256=edmqn_tx4XQ1sEQtB7CpuJT6WwQQiUyUYu8-ESZxFcw,5615
|
|
533
533
|
umap/tests/test_tilelayer.py,sha256=toVpVutEvMLWKx5uH7ZbGNPGzqICZx1_S2OOpIfYPfQ,603
|
|
534
|
-
umap/tests/test_utils.py,sha256=
|
|
534
|
+
umap/tests/test_utils.py,sha256=BWtrNhkei7LacUqVGVP9fMX4Ys_wYu4AAOLwNZfFfLo,692
|
|
535
535
|
umap/tests/test_views.py,sha256=5-XT4tiT9FIJY6BWWY6yJCj5BFAwON5RfF6HPzz4E8s,19503
|
|
536
536
|
umap/tests/fixtures/categorized_highway.geojson,sha256=p7QHOd8nXi7yVq37gY6Ca8BXkjaLnDxW9Fq0Zcm3Fk4,15830
|
|
537
537
|
umap/tests/fixtures/choropleth_region_chomage.geojson,sha256=mVVbYlf92Sr3wWH9ETm43FdHz1U3zjsn91HuU5H5r4Y,21325
|
|
@@ -605,8 +605,8 @@ umap/tests/integration/test_view_marker.py,sha256=NFCwNez__E_WsE1DuW5RuB0HVKDP4C
|
|
|
605
605
|
umap/tests/integration/test_view_polygon.py,sha256=NMJC6Nt9VpQ8FIU9Pqq2OspHv49xsWlsoXCr8iBa0VA,2060
|
|
606
606
|
umap/tests/integration/test_view_polyline.py,sha256=aJoXKmLhJaN0yhPdDCVskZNGx3q3mLDkjVPhZ30cadA,13959
|
|
607
607
|
umap/tests/integration/test_websocket_sync.py,sha256=CeigDGSDSa6LeM_ZxPoDDfQ20GPHEgPPSDVLEMd4ToI,28367
|
|
608
|
-
umap_project-3.4.
|
|
609
|
-
umap_project-3.4.
|
|
610
|
-
umap_project-3.4.
|
|
611
|
-
umap_project-3.4.
|
|
612
|
-
umap_project-3.4.
|
|
608
|
+
umap_project-3.4.0b1.dist-info/METADATA,sha256=3OxMevlTAVBzWhQHbDFC5JSWKQiGu1X8xgiOQ-PlVLU,5751
|
|
609
|
+
umap_project-3.4.0b1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
610
|
+
umap_project-3.4.0b1.dist-info/entry_points.txt,sha256=gz-KDQfEsMLBae8ABOD3foJsCYGPW1tA4Y394R_1RW8,39
|
|
611
|
+
umap_project-3.4.0b1.dist-info/licenses/LICENSE,sha256=kQtrtRKgiPhcl7aO0-lmvbrNAXu7WHyiXvPrUk-TD2Q,820
|
|
612
|
+
umap_project-3.4.0b1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|