goodmap 2.0.0a8__tar.gz → 2.0.0a9__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.
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/PKG-INFO +2 -2
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/field_types.py +5 -3
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/pyproject.toml +2 -2
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/LICENSE.md +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/README.md +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/__init__.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/api/admin_api.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/api/api_models.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/api/core_api.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/clustering.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/config.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/core.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/data_models/location.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/db.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/exceptions.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/feature_flags.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/filtering.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/formatter.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/goodmap.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/initial_view.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/json_security.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/marker_styles.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/plugin.py +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/static/frontend/index.min.js +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/templates/goodmap-admin.html +0 -0
- {goodmap-2.0.0a8 → goodmap-2.0.0a9}/goodmap/templates/map.html +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: goodmap
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a9
|
|
4
4
|
Summary: Map engine to serve all the people :)
|
|
5
5
|
Author: Krzysztof Kolodzinski
|
|
6
6
|
Author-email: krzysztof.kolodzinski@problematy.pl
|
|
@@ -23,7 +23,7 @@ Requires-Dist: gunicorn (>=20.1,<26.0)
|
|
|
23
23
|
Requires-Dist: humanize (>=4.6.0,<5.0.0)
|
|
24
24
|
Requires-Dist: myst-parser (>=4.0.0,<5.0.0) ; extra == "docs"
|
|
25
25
|
Requires-Dist: numpy (>=2.2.0,<3.0.0)
|
|
26
|
-
Requires-Dist: platzky (==2.0.
|
|
26
|
+
Requires-Dist: platzky (==2.0.0a15)
|
|
27
27
|
Requires-Dist: pydantic (>=2.12.0,<3.0.0)
|
|
28
28
|
Requires-Dist: pysupercluster-problematy (>=0.7.8,<0.8.0)
|
|
29
29
|
Requires-Dist: scipy (>=1.15.1,<2.0.0)
|
|
@@ -12,9 +12,10 @@ safe only because this catalogue is closed: an entry may name a type in here and
|
|
|
12
12
|
else, and so can never point itself at a plugin's renderer.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
+
from collections.abc import Sequence
|
|
15
16
|
from urllib.parse import urlparse
|
|
16
17
|
|
|
17
|
-
from markupsafe import escape
|
|
18
|
+
from markupsafe import Markup, escape
|
|
18
19
|
from platzky.shortcodes import Shortcode, ShortcodeAttr, ShortcodeAttrs, UrlNotPermitted
|
|
19
20
|
from platzky.shortcodes.link import LinkShortcode
|
|
20
21
|
|
|
@@ -44,7 +45,7 @@ class HyperlinkFieldShortcode(LinkShortcode):
|
|
|
44
45
|
]
|
|
45
46
|
)
|
|
46
47
|
|
|
47
|
-
def render(self, attrs: ShortcodeAttrs, content: str) -> str:
|
|
48
|
+
def render(self, attrs: ShortcodeAttrs, content: str, children: Sequence[Markup]) -> str:
|
|
48
49
|
"""Render the anchor, keeping the text when the URL is refused.
|
|
49
50
|
|
|
50
51
|
A refusal reaches ``render_value`` as a dropped element, which suits a link written
|
|
@@ -56,6 +57,7 @@ class HyperlinkFieldShortcode(LinkShortcode):
|
|
|
56
57
|
Args:
|
|
57
58
|
attrs: The field's stored keys, ``value`` among them.
|
|
58
59
|
content: The link text, already escaped.
|
|
60
|
+
children: Element children, passed through to ``[link]``.
|
|
59
61
|
|
|
60
62
|
Returns:
|
|
61
63
|
An anchor, or just the link text when the URL is not one we may emit.
|
|
@@ -71,7 +73,7 @@ class HyperlinkFieldShortcode(LinkShortcode):
|
|
|
71
73
|
if urlparse(url).scheme in _NEW_TAB_SCHEMES:
|
|
72
74
|
link_attrs.values["target"] = "_blank"
|
|
73
75
|
try:
|
|
74
|
-
return super().render(link_attrs, content)
|
|
76
|
+
return super().render(link_attrs, content, children)
|
|
75
77
|
except UrlNotPermitted:
|
|
76
78
|
return str(content)
|
|
77
79
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "goodmap"
|
|
3
|
-
version = "2.0.0-alpha.
|
|
3
|
+
version = "2.0.0-alpha.9"
|
|
4
4
|
description = "Map engine to serve all the people :)"
|
|
5
5
|
authors = ["Krzysztof Kolodzinski <krzysztof.kolodzinski@problematy.pl>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -22,7 +22,7 @@ Flask-WTF = "^1.2.1"
|
|
|
22
22
|
gql = "^3.4.0"
|
|
23
23
|
aiohttp = "^3.8.4"
|
|
24
24
|
pydantic = "^2.12.0"
|
|
25
|
-
platzky = "2.0.
|
|
25
|
+
platzky = "2.0.0a15"
|
|
26
26
|
deprecation = "^2.1.0"
|
|
27
27
|
numpy = "^2.2.0"
|
|
28
28
|
# Using fork because official PyPI version (0.7.7) has outdated numpy setup hack
|
|
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
|