Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lizmap/definitions/lizmap_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
CLOUD_NAME = 'Lizmap Cloud'
CLOUD_MAX_PARENT_FOLDER = 2

CLOUD_MANAGER_URL = 'https://www.lizmap.com/manager/'
CLOUD_ONLINE_URL = 'https://docs.lizmap.cloud'
CLOUD_ONLINE_LANGUAGES = ('en', 'fr')

ROLE_DOC_URL = {
'en': 'https://docs.lizmap.cloud/en/postgresql.html#rights-and-roles',
'fr': 'https://docs.lizmap.cloud/fr/postgresql.html#les-droits-et-roles',
}

# TODO Fixme, the minimum version recommended varies on the LWC version
# When changed, check for occurrences about the date
# It's used in tests in test_version_info_qgis_server_status
Expand Down
7 changes: 6 additions & 1 deletion lizmap/definitions/online_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,15 @@ class Panels:
}


def pg_service_help() -> QUrl:
def pg_service_help_on_qgis() -> QUrl:
""" Open the QGIS.org documentation about PG Service. """
# The QGIS documentation is better than the PostgreSQL doc :/
return QUrl(
f"https://docs.qgis.org/latest/{current_locale()}/docs/user_manual/managing_data_source/opening_data.html"
f"#postgresql-service-connection-file"
)


def pg_service_help_on_pg() -> QUrl:
""" Open the PostgreSQL documentation about PG Service. """
return QUrl("https://www.postgresql.org/docs/current/libpq-pgservice.html")
4 changes: 2 additions & 2 deletions lizmap/dialogs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
from lizmap.definitions.online_help import (
Panels,
online_lwc_help,
pg_service_help,
pg_service_help_on_qgis,
)
from lizmap.qt_style_sheets import COMPLETE_STYLE_SHEET
from lizmap.toolbelt.i18n import tr
Expand Down Expand Up @@ -442,7 +442,7 @@ def project_crs_changed(self):
def open_pg_service_help():
""" Open the PG service documentation. """
# noinspection PyArgumentList
QDesktopServices.openUrl(pg_service_help())
QDesktopServices.openUrl(pg_service_help_on_qgis())

@staticmethod
def open_lizmap_how_to():
Expand Down
Loading
Loading