c2cgeoportal-geoportal 2.9rc96__py3-none-any.whl → 2.9rc102__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.
- c2cgeoportal_geoportal/views/tinyowsproxy.py +12 -6
- {c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/METADATA +1 -1
- {c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/RECORD +6 -6
- {c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/WHEEL +0 -0
- {c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/entry_points.txt +0 -0
- {c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2015-
|
1
|
+
# Copyright (c) 2015-2025, Camptocamp SA
|
2
2
|
# All rights reserved.
|
3
3
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
@@ -30,6 +30,7 @@ import logging
|
|
30
30
|
from typing import Any
|
31
31
|
|
32
32
|
import pyramid.request
|
33
|
+
import sqlalchemy.exc
|
33
34
|
from defusedxml import ElementTree
|
34
35
|
from pyramid.httpexceptions import HTTPBadRequest, HTTPForbidden, HTTPInternalServerError, HTTPUnauthorized
|
35
36
|
from pyramid.view import view_config
|
@@ -59,11 +60,16 @@ class TinyOWSProxy(OGCProxy):
|
|
59
60
|
self.settings = request.registry.settings.get("tinyowsproxy", {})
|
60
61
|
|
61
62
|
assert "tinyows_url" in self.settings, "tinyowsproxy.tinyows_url must be set"
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
try:
|
64
|
+
self.ogc_server = (
|
65
|
+
models.DBSession.query(main.OGCServer)
|
66
|
+
.filter(main.OGCServer.name == self.settings["ogc_server"])
|
67
|
+
.one()
|
68
|
+
)
|
69
|
+
except sqlalchemy.exc.NoResultFound:
|
70
|
+
raise HTTPBadRequest( # pylint: disable=raise-missing-from
|
71
|
+
f"OGC server {self.settings['ogc_server']} not found"
|
72
|
+
)
|
67
73
|
|
68
74
|
self.user = self.request.user
|
69
75
|
|
{c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/RECORD
RENAMED
@@ -172,7 +172,7 @@ c2cgeoportal_geoportal/views/raster.py,sha256=kY6rYo4SxQP9JLbsq3_kdWdbaTVkdQDdpj
|
|
172
172
|
c2cgeoportal_geoportal/views/resourceproxy.py,sha256=pcHwU6hAXHeh_Ef6tuHxpRzGje8nqVKUxyZwZKOPCjI,3189
|
173
173
|
c2cgeoportal_geoportal/views/shortener.py,sha256=t-05vHSbsp6aIYV6fKk-ic6Zo45TLePIlGnPAzwrzQU,6179
|
174
174
|
c2cgeoportal_geoportal/views/theme.py,sha256=jSpQcI3x2Exo31ubHdF8_ApGIhET7MnH7p0DN6yQLDI,55924
|
175
|
-
c2cgeoportal_geoportal/views/tinyowsproxy.py,sha256=
|
175
|
+
c2cgeoportal_geoportal/views/tinyowsproxy.py,sha256=_wPN1Vfo4RNcCQ1xRPU_funie7mDPocL-ox_4hlF1-Y,8178
|
176
176
|
c2cgeoportal_geoportal/views/vector_tiles.py,sha256=2bF3j6WvOpXAJULsEfy7pfeUBeKVheMlcUOWzHVow90,3575
|
177
177
|
tests/__init__.py,sha256=KxmbgvRWDSJoEDH1cXnDIjbfBsgCzs2KdkTPuzYMq84,3826
|
178
178
|
tests/test_cachebuster.py,sha256=asI1X_qI0MGklYuKuWyqvCPVbvhQcUe4fX91Dk-hUsE,2923
|
@@ -187,8 +187,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
|
|
187
187
|
tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
|
188
188
|
tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
|
189
189
|
tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
|
190
|
-
c2cgeoportal_geoportal-2.
|
191
|
-
c2cgeoportal_geoportal-2.
|
192
|
-
c2cgeoportal_geoportal-2.
|
193
|
-
c2cgeoportal_geoportal-2.
|
194
|
-
c2cgeoportal_geoportal-2.
|
190
|
+
c2cgeoportal_geoportal-2.9rc102.dist-info/METADATA,sha256=xiBsuMNIx006F1CDbB0VzNKzu6JNg-JjeuaT4EGhtIU,1887
|
191
|
+
c2cgeoportal_geoportal-2.9rc102.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
192
|
+
c2cgeoportal_geoportal-2.9rc102.dist-info/entry_points.txt,sha256=3dnX260FsLX_AubeNMdyeta_z1X4CxcD3steAlfPx2I,1414
|
193
|
+
c2cgeoportal_geoportal-2.9rc102.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
|
194
|
+
c2cgeoportal_geoportal-2.9rc102.dist-info/RECORD,,
|
{c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
{c2cgeoportal_geoportal-2.9rc96.dist-info → c2cgeoportal_geoportal-2.9rc102.dist-info}/top_level.txt
RENAMED
File without changes
|