c2cgeoportal-geoportal 2.9rc11__py3-none-any.whl → 2.9rc12__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/theme.py +19 -19
- {c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/METADATA +1 -1
- {c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/RECORD +6 -6
- {c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/WHEEL +0 -0
- {c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/entry_points.txt +0 -0
- {c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/top_level.txt +0 -0
@@ -985,18 +985,18 @@ class Theme:
|
|
985
985
|
assert models.DBSession is not None
|
986
986
|
tasks = set()
|
987
987
|
|
988
|
-
for ogc_server in
|
988
|
+
for ogc_server, nb_layers in (
|
989
|
+
models.DBSession.query(
|
990
|
+
main.OGCServer, sqlalchemy.func.count(main.LayerWMS.id) # pylint: disable=not-callable
|
991
|
+
)
|
992
|
+
.filter(main.LayerWMS.ogc_server_id == main.OGCServer.id)
|
993
|
+
.group_by(main.OGCServer.id)
|
994
|
+
.all()
|
995
|
+
):
|
989
996
|
# Don't load unused OGC servers, required for landing page, because the related OGC server
|
990
997
|
# will be on error in those functions.
|
991
|
-
nb_layers
|
992
|
-
|
993
|
-
sqlalchemy.func.count(main.LayerWMS.id) # pylint: disable=not-callable
|
994
|
-
)
|
995
|
-
.filter(main.LayerWMS.ogc_server_id == ogc_server.id)
|
996
|
-
.one()
|
997
|
-
)
|
998
|
-
_LOG.debug("%i layers for OGC server '%s'", nb_layers[0], ogc_server.name)
|
999
|
-
if nb_layers[0] > 0:
|
998
|
+
_LOG.debug("%i layers for OGC server '%s'", nb_layers, ogc_server.name)
|
999
|
+
if nb_layers > 0:
|
1000
1000
|
_LOG.debug("Preload OGC server '%s'", ogc_server.name)
|
1001
1001
|
url_internal_wfs, _, _ = self.get_url_internal_wfs(ogc_server, errors)
|
1002
1002
|
if url_internal_wfs is not None:
|
@@ -1143,15 +1143,15 @@ class Theme:
|
|
1143
1143
|
_LOG.info("Do preload in %.3fs.", time.time() - start_time)
|
1144
1144
|
_LOG.debug("Run garbage collection: %s", ", ".join([str(gc.collect(n)) for n in range(3)]))
|
1145
1145
|
result["ogcServers"] = {}
|
1146
|
-
for ogc_server in
|
1147
|
-
|
1148
|
-
|
1149
|
-
sqlalchemy.func.count(main.LayerWMS.id) # pylint: disable=not-callable
|
1150
|
-
)
|
1151
|
-
.filter(main.LayerWMS.ogc_server_id == ogc_server.id)
|
1152
|
-
.one()
|
1146
|
+
for ogc_server, nb_layers in (
|
1147
|
+
models.DBSession.query(
|
1148
|
+
main.OGCServer, sqlalchemy.func.count(main.LayerWMS.id) # pylint: disable=not-callable
|
1153
1149
|
)
|
1154
|
-
|
1150
|
+
.filter(main.LayerWMS.ogc_server_id == main.OGCServer.id)
|
1151
|
+
.group_by(main.OGCServer.id)
|
1152
|
+
.all()
|
1153
|
+
):
|
1154
|
+
if nb_layers == 0:
|
1155
1155
|
# QGIS Server landing page requires an OGC server that can't be used here.
|
1156
1156
|
continue
|
1157
1157
|
|
@@ -1190,7 +1190,7 @@ class Theme:
|
|
1190
1190
|
if name in attributes:
|
1191
1191
|
del attributes[name]
|
1192
1192
|
|
1193
|
-
result["ogcServers"][ogc_server.name] = {
|
1193
|
+
result["ogcServers"][ogc_server.name] = {
|
1194
1194
|
"url": url.url() if url else None,
|
1195
1195
|
"urlWfs": url_wfs.url() if url_wfs else None,
|
1196
1196
|
"type": ogc_server.type,
|
{c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/RECORD
RENAMED
@@ -169,7 +169,7 @@ c2cgeoportal_geoportal/views/proxy.py,sha256=BCjFtnsrIQ2U30wk08YFLyt3Cq0yX3Rtwv5
|
|
169
169
|
c2cgeoportal_geoportal/views/raster.py,sha256=94rMGBQ7zHTvlKewBl-18LdoYRdLjW4880XlODDvhsE,7535
|
170
170
|
c2cgeoportal_geoportal/views/resourceproxy.py,sha256=S8PEqBpeJKsoLJlzA5lsqQoVDvh8pu5FEPh4OhJQU0Y,3183
|
171
171
|
c2cgeoportal_geoportal/views/shortener.py,sha256=54HNEDpueIdsKIpbWuk1MDpFC2gyo01MoAXc0uMVcl8,6167
|
172
|
-
c2cgeoportal_geoportal/views/theme.py,sha256=
|
172
|
+
c2cgeoportal_geoportal/views/theme.py,sha256=aX2v3p9R9be7u4YL_avHQ7ixQKO7FRMDinxiNzY4MSA,55884
|
173
173
|
c2cgeoportal_geoportal/views/tinyowsproxy.py,sha256=ydq3mKFd_KeQ0DG5ct59BlcIY8_2rsMAtGrAFE0407g,7916
|
174
174
|
c2cgeoportal_geoportal/views/vector_tiles.py,sha256=t_pZ4l6JpispZFr42EodcDIwAwG2q-MX12yI03w7Y6I,3569
|
175
175
|
tests/__init__.py,sha256=KxmbgvRWDSJoEDH1cXnDIjbfBsgCzs2KdkTPuzYMq84,3826
|
@@ -185,8 +185,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
|
|
185
185
|
tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
|
186
186
|
tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
|
187
187
|
tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
|
188
|
-
c2cgeoportal_geoportal-2.
|
189
|
-
c2cgeoportal_geoportal-2.
|
190
|
-
c2cgeoportal_geoportal-2.
|
191
|
-
c2cgeoportal_geoportal-2.
|
192
|
-
c2cgeoportal_geoportal-2.
|
188
|
+
c2cgeoportal_geoportal-2.9rc12.dist-info/METADATA,sha256=1Y-RRG51DQAoUHiJty2Ahmx84p_Co6uVJznARQZKPQA,1886
|
189
|
+
c2cgeoportal_geoportal-2.9rc12.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
190
|
+
c2cgeoportal_geoportal-2.9rc12.dist-info/entry_points.txt,sha256=3dnX260FsLX_AubeNMdyeta_z1X4CxcD3steAlfPx2I,1414
|
191
|
+
c2cgeoportal_geoportal-2.9rc12.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
|
192
|
+
c2cgeoportal_geoportal-2.9rc12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{c2cgeoportal_geoportal-2.9rc11.dist-info → c2cgeoportal_geoportal-2.9rc12.dist-info}/top_level.txt
RENAMED
File without changes
|