Skip to content

Commit

Permalink
For Lizmap Cloud, start increasing from QGIS 3.28 to 3.34
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Nov 12, 2024
1 parent 6b28a8d commit 4a5910b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lizmap/definitions/lizmap_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
CLOUD_ONLINE_LANGUAGES = ('en', 'fr')

# TODO Fixme, the minimum version recommended varies on the LWC version
# When changed, check for occurrences about the date
# TODO change to 3.34 soon, translated text are ready
CLOUD_QGIS_MIN_RECOMMENDED = (3, 28, 0)

UPLOAD_EXTENSIONS = ('fgb', 'gpkg', 'xlsx', 'xls', 'csv', 'ods', 'kml', 'geojson')
Expand Down
4 changes: 3 additions & 1 deletion lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3667,10 +3667,12 @@ def project_config_file(
+ "<br><br>"
+ tr(
'This version of QGIS Server has now reached its end of life and is not supported '
'anymore by QGIS.org since February 2023, see the '
'anymore by QGIS.org since {month_and_year}, see the '
'<a href="https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule">'
'QGIS roadmap'
'</a>.'
).format(
month_and_year=tr("February 2024"),
)
+ "<br><br>"
+ tr(
Expand Down
9 changes: 7 additions & 2 deletions lizmap/server_lwc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,14 @@ def _messages_for_version(
qgis_server = (int(split[0]), int(split[1]), int(split[2]))
if lizmap_cloud and qgis_server < CLOUD_QGIS_MIN_RECOMMENDED:
messages.insert(0, tr(
'QGIS Server version {}.{} is not maintained anymore by QGIS.org since February 2023. '
'QGIS Server version {major}.{minor} is not maintained anymore by QGIS.org since '
'{month_and_year}. '
'Please visit your administration panel in the web browser to ask for the update.'
).format(qgis_server[0], qgis_server[1]))
).format(
major=qgis_server[0],
minor=qgis_server[1],
month_and_year=tr("February 2024"),
))
level = Qgis.Critical

if len(messages) == 0:
Expand Down

0 comments on commit 4a5910b

Please sign in to comment.