c2cgeoportal-commons 2.9rc95__py3-none-any.whl → 2.9rc96__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.

@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024, Camptocamp SA
1
+ # Copyright (c) 2024-2025, Camptocamp SA
2
2
  # All rights reserved.
3
3
 
4
4
  # Redistribution and use in source and binary forms, with or without
@@ -57,6 +57,9 @@ def upgrade() -> None:
57
57
  op.execute(
58
58
  f"UPDATE {schema}.ogc_server SET url = 'config://mapserver/mapserv_proxy/MapServer?MAP=MapServer' WHERE url = 'config://mapserver'"
59
59
  )
60
+ op.execute(
61
+ f"UPDATE {schema}.metadata SET value = 'MapServer' WHERE value = 'source for image/png' and name = 'ogcServer'"
62
+ )
60
63
 
61
64
 
62
65
  def downgrade() -> None:
@@ -69,3 +72,6 @@ def downgrade() -> None:
69
72
  op.execute(
70
73
  f"UPDATE {schema}.ogc_server SET url = 'config://mapserver' WHERE url = 'config://mapserver/mapserv_proxy/MapServer?MAP=MapServer'"
71
74
  )
75
+ op.execute(
76
+ f"UPDATE {schema}.metadata SET value = 'source for image/png' WHERE value = 'MapServer' and name = 'ogcServer'"
77
+ )
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2011-2024, Camptocamp SA
1
+ # Copyright (c) 2011-2025, Camptocamp SA
2
2
  # All rights reserved.
3
3
 
4
4
  # Redistribution and use in source and binary forms, with or without
@@ -748,7 +748,9 @@ class OGCServer(Base): # type: ignore
748
748
  "colanderalchemy": {
749
749
  "title": _("Name"),
750
750
  "description": _(
751
- "The name of the OGC Server, should contains only no unaccentuated letters, numbers and _"
751
+ "The name of the OGC Server, should contains only no unaccentuated letters, numbers and _. "
752
+ "When you rename it don't miss to update the <code>ogcServer<code> metadata on the "
753
+ "WMTS and COG layers."
752
754
  ),
753
755
  }
754
756
  },
@@ -758,7 +760,7 @@ class OGCServer(Base): # type: ignore
758
760
  info={
759
761
  "colanderalchemy": {
760
762
  "title": _("Description"),
761
- "description": _("A description"),
763
+ "description": _("An optional description."),
762
764
  }
763
765
  },
764
766
  )
@@ -768,7 +770,7 @@ class OGCServer(Base): # type: ignore
768
770
  info={
769
771
  "colanderalchemy": {
770
772
  "title": _("Basic URL"),
771
- "description": _("The server URL"),
773
+ "description": _("The server URL."),
772
774
  }
773
775
  },
774
776
  )
@@ -1121,7 +1123,7 @@ class LayerWMTS(DimensionLayer):
1121
1123
  info={
1122
1124
  "colanderalchemy": {
1123
1125
  "title": _("WMTS layer name"),
1124
- "description": _("The name of the WMTS layer to use"),
1126
+ "description": _("The name of the WMTS layer to use."),
1125
1127
  "column": 2,
1126
1128
  }
1127
1129
  },
@@ -1324,7 +1326,7 @@ class LayerVectorTiles(DimensionLayer):
1324
1326
  "title": _("Style"),
1325
1327
  "description": _(
1326
1328
  """
1327
- The path to a Mapbox Style file (version 8 or higher). Example: https://url/style.json
1329
+ The path to a Mapbox Style file (version 8 or higher). Example: https://url/style.json.
1328
1330
  """
1329
1331
  ),
1330
1332
  "column": 2,
@@ -1338,11 +1340,7 @@ class LayerVectorTiles(DimensionLayer):
1338
1340
  info={
1339
1341
  "colanderalchemy": {
1340
1342
  "title": _("SQL query"),
1341
- "description": _(
1342
- """
1343
- A SQL query to get the vector tiles data.
1344
- """
1345
- ),
1343
+ "description": _("A SQL query to get the vector tiles data."),
1346
1344
  "column": 2,
1347
1345
  "widget": TextAreaWidget(rows=15),
1348
1346
  }
@@ -1411,7 +1409,7 @@ class RestrictionArea(Base): # type: ignore
1411
1409
  info={
1412
1410
  "colanderalchemy": {
1413
1411
  "title": _("Description"),
1414
- "description": _("An optional description"),
1412
+ "description": _("An optional description."),
1415
1413
  }
1416
1414
  },
1417
1415
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cgeoportal-commons
3
- Version: 2.9rc95
3
+ Version: 2.9rc96
4
4
  Summary: c2cgeoportal commons
5
5
  Home-page: https://github.com/camptocamp/c2cgeoportal/
6
6
  Author: Camptocamp
@@ -15,7 +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
+ c2cgeoportal_commons/alembic/main/2e57710fecfe_update_the_ogc_server_for_ogc_api.py,sha256=-xRBxIsgYSpIotTAM4M834MghzHPOaSXCG59pKAE56I,3201
19
19
  c2cgeoportal_commons/alembic/main/32527659d57b_move_exclude_properties_from_layerv1_to_.py,sha256=mt3tDOa3GsySL0BEENm8Wv9iWKWHIG8AKsfXc1Ev0yE,2786
20
20
  c2cgeoportal_commons/alembic/main/32b21aa1d0ed_merge_e004f76e951a_and_e004f76e951a_.py,sha256=1wRDK3vX6AiKZNSh-skPX74_4inCzctUyJZ85i5xh64,2003
21
21
  c2cgeoportal_commons/alembic/main/338b57593823_remove_trigger_on_role_name_change.py,sha256=a0s_7nMtl1Y9l1rfMNeiKVWunFR6zrjPrvVdMJsmHh8,2809
@@ -76,14 +76,14 @@ c2cgeoportal_commons/lib/literal.py,sha256=AUvu_Gj-fiYgXTdorJV1XLPW0i5bzpWeMxGPl
76
76
  c2cgeoportal_commons/lib/url.py,sha256=yl9vYJmgfoRTAH79UPp6Dt-e5JKwV3cYfELS10O3w0M,8244
77
77
  c2cgeoportal_commons/lib/validators.py,sha256=dF0Qlg6ghMrxwNqV675Juz5fIx9-58f4JimV7SC-sqc,1805
78
78
  c2cgeoportal_commons/models/__init__.py,sha256=lH45DyppwMI-GV36oiHOBPQ1B8F6U-WxuhIYFlS25zY,2694
79
- c2cgeoportal_commons/models/main.py,sha256=oL79ZeXFbtVGjX0CkR5HSbZZYj1g28dU8QJ2FA5VxIA,65519
79
+ c2cgeoportal_commons/models/main.py,sha256=DYICeoGfzUByj9iOLmdOLYyt1oyx-uUGhP9R7b4xvo0,65600
80
80
  c2cgeoportal_commons/models/sqlalchemy.py,sha256=0G1ZLjxDx4CQLl0OKz-lQrXLLKGuxnRFZDlUCamby-k,2823
81
81
  c2cgeoportal_commons/models/static.py,sha256=Ho1StLpK3HZJKTR1v594LscJdWnCkVlwIpebBQ6_LVk,18756
82
82
  c2cgeoportal_commons/testing/__init__.py,sha256=E_CJMEWjf87NZMNNp-2OhgcZD6LvxGHplZXNLZYSl3U,4081
83
83
  c2cgeoportal_commons/testing/initializedb.py,sha256=jsFzMimA_wPbp0DwniGiM_ekngDyX57mqoI6_ioNPUY,3224
84
84
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
85
  tests/conftest.py,sha256=DdCNLXAzOwjztauMELLHQsdzcuQgx83Jfy-0JUu-OCs,1450
86
- c2cgeoportal_commons-2.9rc95.dist-info/METADATA,sha256=81GktVRRzZBPQ_ILvEusW1X3vWPIeishC3_xFnfCE1A,1803
87
- c2cgeoportal_commons-2.9rc95.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
88
- c2cgeoportal_commons-2.9rc95.dist-info/top_level.txt,sha256=NWDBsLJav5VgJVX1XzTwUvFShioh9XSi5IaJU_9_YDc,27
89
- c2cgeoportal_commons-2.9rc95.dist-info/RECORD,,
86
+ c2cgeoportal_commons-2.9rc96.dist-info/METADATA,sha256=vEeTXqiH2dQGTtZi_Kom3Zt2ILIi0pKm7hLxqz2ngKw,1803
87
+ c2cgeoportal_commons-2.9rc96.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
88
+ c2cgeoportal_commons-2.9rc96.dist-info/top_level.txt,sha256=NWDBsLJav5VgJVX1XzTwUvFShioh9XSi5IaJU_9_YDc,27
89
+ c2cgeoportal_commons-2.9rc96.dist-info/RECORD,,