c2cgeoportal-commons 2.9rc15__py3-none-any.whl → 2.9rc16__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 c2cgeoportal-commons might be problematic. Click here for more details.
- c2cgeoportal_commons/alembic/main/2e57710fecfe_update_the_ogc_server_for_ogc_api.py +71 -0
- c2cgeoportal_commons/models/main.py +3 -1
- {c2cgeoportal_commons-2.9rc15.dist-info → c2cgeoportal_commons-2.9rc16.dist-info}/METADATA +1 -1
- {c2cgeoportal_commons-2.9rc15.dist-info → c2cgeoportal_commons-2.9rc16.dist-info}/RECORD +6 -5
- {c2cgeoportal_commons-2.9rc15.dist-info → c2cgeoportal_commons-2.9rc16.dist-info}/WHEEL +0 -0
- {c2cgeoportal_commons-2.9rc15.dist-info → c2cgeoportal_commons-2.9rc16.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Copyright (c) 2024, Camptocamp SA
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
|
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
|
5
|
+
# modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
# list of conditions and the following disclaimer.
|
|
9
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
# and/or other materials provided with the distribution.
|
|
12
|
+
|
|
13
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
14
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
15
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
16
|
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
17
|
+
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
18
|
+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
19
|
+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
20
|
+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
21
|
+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
22
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
23
|
+
|
|
24
|
+
# The views and conclusions contained in the software and documentation are those
|
|
25
|
+
# of the authors and should not be interpreted as representing official policies,
|
|
26
|
+
# either expressed or implied, of the FreeBSD Project.
|
|
27
|
+
|
|
28
|
+
# pylint: disable=invalid-name
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
Update the OGC server for OGC API.
|
|
32
|
+
|
|
33
|
+
Revision ID: 2e57710fecfe
|
|
34
|
+
Revises: a4558f032d7d
|
|
35
|
+
Create Date: 2024-11-27 12:47:20.234376
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
from alembic import op
|
|
39
|
+
from c2c.template.config import config
|
|
40
|
+
|
|
41
|
+
# revision identifiers, used by Alembic.
|
|
42
|
+
revision = "2e57710fecfe"
|
|
43
|
+
down_revision = "a4558f032d7d"
|
|
44
|
+
branch_labels = None
|
|
45
|
+
depends_on = None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def upgrade() -> None:
|
|
49
|
+
"""Upgrade."""
|
|
50
|
+
schema = config["schema"]
|
|
51
|
+
|
|
52
|
+
# Instructions
|
|
53
|
+
|
|
54
|
+
# default 'image/jpeg', 'image/png'
|
|
55
|
+
op.execute(f"UPDATE {schema}.ogc_server SET name = 'MapServer' WHERE name = 'source for image/png'")
|
|
56
|
+
op.execute(f"UPDATE {schema}.ogc_server SET name = 'MapServer_JPEG' WHERE name = 'source for image/jpeg'")
|
|
57
|
+
op.execute(
|
|
58
|
+
f"UPDATE {schema}.ogc_server SET url = 'config://mapserver/mapserv_proxy/MapServer?MAP=MapServer' WHERE url = 'config://mapserver'"
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def downgrade() -> None:
|
|
63
|
+
"""Downgrade."""
|
|
64
|
+
schema = config["schema"]
|
|
65
|
+
|
|
66
|
+
# Instructions
|
|
67
|
+
op.execute(f"UPDATE {schema}.ogc_server SET name = 'source for image/png' WHERE name = 'MapServer'")
|
|
68
|
+
op.execute(f"UPDATE {schema}.ogc_server SET name = 'source for image/jpeg' WHERE name = 'MapServer_JPEG'")
|
|
69
|
+
op.execute(
|
|
70
|
+
f"UPDATE {schema}.ogc_server SET url = 'config://mapserver' WHERE url = 'config://mapserver/mapserv_proxy/MapServer?MAP=MapServer'"
|
|
71
|
+
)
|
|
@@ -747,7 +747,9 @@ class OGCServer(Base): # type: ignore
|
|
|
747
747
|
info={
|
|
748
748
|
"colanderalchemy": {
|
|
749
749
|
"title": _("Name"),
|
|
750
|
-
"description": _(
|
|
750
|
+
"description": _(
|
|
751
|
+
"The name of the OGC Server, should contains only no unaccentuated letters, numbers and _"
|
|
752
|
+
),
|
|
751
753
|
}
|
|
752
754
|
},
|
|
753
755
|
)
|
|
@@ -15,6 +15,7 @@ c2cgeoportal_commons/alembic/main/21f11066f8ec_trigger_on_role_updates_user_in_s
|
|
|
15
15
|
c2cgeoportal_commons/alembic/main/22e6dfb556de_add_description_tree_.py,sha256=Qy1cawz3wvpn9LAj5o6EWejTYxxVM6wwvrQeIKDUSuw,2429
|
|
16
16
|
c2cgeoportal_commons/alembic/main/29f2a32859ec_merge_1_6_and_master_branches.py,sha256=pSdLGBe3J7vJx7EBWo2r5bNUEJCs2MYbl1lorkL_1Wk,1991
|
|
17
17
|
c2cgeoportal_commons/alembic/main/2b8ed8c1df94_set_layergroup_treeitem_is_as_a_primary_.py,sha256=3G_NaCeC5tR8_wIjUCB_-vavpgqhCtVgrG9XEQ5UhwA,2291
|
|
18
|
+
c2cgeoportal_commons/alembic/main/2e57710fecfe_update_the_ogc_server_for_ogc_api.py,sha256=Rs4X8yBkjZCErgyKbJe_YuWQr1277QfFRobLoM5FKpo,2912
|
|
18
19
|
c2cgeoportal_commons/alembic/main/32527659d57b_move_exclude_properties_from_layerv1_to_.py,sha256=mt3tDOa3GsySL0BEENm8Wv9iWKWHIG8AKsfXc1Ev0yE,2786
|
|
19
20
|
c2cgeoportal_commons/alembic/main/32b21aa1d0ed_merge_e004f76e951a_and_e004f76e951a_.py,sha256=1wRDK3vX6AiKZNSh-skPX74_4inCzctUyJZ85i5xh64,2003
|
|
20
21
|
c2cgeoportal_commons/alembic/main/338b57593823_remove_trigger_on_role_name_change.py,sha256=a0s_7nMtl1Y9l1rfMNeiKVWunFR6zrjPrvVdMJsmHh8,2809
|
|
@@ -75,14 +76,14 @@ c2cgeoportal_commons/lib/literal.py,sha256=AUvu_Gj-fiYgXTdorJV1XLPW0i5bzpWeMxGPl
|
|
|
75
76
|
c2cgeoportal_commons/lib/url.py,sha256=yl9vYJmgfoRTAH79UPp6Dt-e5JKwV3cYfELS10O3w0M,8244
|
|
76
77
|
c2cgeoportal_commons/lib/validators.py,sha256=dF0Qlg6ghMrxwNqV675Juz5fIx9-58f4JimV7SC-sqc,1805
|
|
77
78
|
c2cgeoportal_commons/models/__init__.py,sha256=lH45DyppwMI-GV36oiHOBPQ1B8F6U-WxuhIYFlS25zY,2694
|
|
78
|
-
c2cgeoportal_commons/models/main.py,sha256=
|
|
79
|
+
c2cgeoportal_commons/models/main.py,sha256=oL79ZeXFbtVGjX0CkR5HSbZZYj1g28dU8QJ2FA5VxIA,65519
|
|
79
80
|
c2cgeoportal_commons/models/sqlalchemy.py,sha256=0G1ZLjxDx4CQLl0OKz-lQrXLLKGuxnRFZDlUCamby-k,2823
|
|
80
81
|
c2cgeoportal_commons/models/static.py,sha256=zQx3qP9CI8FvxqkyjyDSighMARBjnHonNVPyvb0vI3E,18782
|
|
81
82
|
c2cgeoportal_commons/testing/__init__.py,sha256=E_CJMEWjf87NZMNNp-2OhgcZD6LvxGHplZXNLZYSl3U,4081
|
|
82
83
|
c2cgeoportal_commons/testing/initializedb.py,sha256=jsFzMimA_wPbp0DwniGiM_ekngDyX57mqoI6_ioNPUY,3224
|
|
83
84
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
85
|
tests/conftest.py,sha256=DdCNLXAzOwjztauMELLHQsdzcuQgx83Jfy-0JUu-OCs,1450
|
|
85
|
-
c2cgeoportal_commons-2.
|
|
86
|
-
c2cgeoportal_commons-2.
|
|
87
|
-
c2cgeoportal_commons-2.
|
|
88
|
-
c2cgeoportal_commons-2.
|
|
86
|
+
c2cgeoportal_commons-2.9rc16.dist-info/METADATA,sha256=P4s-ChJuXm0IdwFlgS_J6UQORP8_32IFy-Hv2pvBBEY,1803
|
|
87
|
+
c2cgeoportal_commons-2.9rc16.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
88
|
+
c2cgeoportal_commons-2.9rc16.dist-info/top_level.txt,sha256=NWDBsLJav5VgJVX1XzTwUvFShioh9XSi5IaJU_9_YDc,27
|
|
89
|
+
c2cgeoportal_commons-2.9rc16.dist-info/RECORD,,
|
|
File without changes
|
{c2cgeoportal_commons-2.9rc15.dist-info → c2cgeoportal_commons-2.9rc16.dist-info}/top_level.txt
RENAMED
|
File without changes
|