diff --git a/lizmap/project_checker_tools.py b/lizmap/project_checker_tools.py index e8785c2f..01e1b486 100644 --- a/lizmap/project_checker_tools.py +++ b/lizmap/project_checker_tools.py @@ -73,12 +73,13 @@ def project_safeguards_checks( # We can continue continue - if datasource.host().endswith(CLOUD_DOMAIN) or force_pg_user_pass: - if not datasource.username() or not datasource.password(): - results[SourceLayer(layer.name(), layer.id())] = Checks.PgForceUserPass + if not datasource.service(): + if datasource.host().endswith(CLOUD_DOMAIN) or force_pg_user_pass: + if not datasource.username() or not datasource.password(): + results[SourceLayer(layer.name(), layer.id())] = Checks.PgForceUserPass - # We can continue - continue + # We can continue + continue # Only vector/raster file based diff --git a/lizmap/resources/ui/ui_lizmap.ui b/lizmap/resources/ui/ui_lizmap.ui index 5d7bad21..9f5942db 100755 --- a/lizmap/resources/ui/ui_lizmap.ui +++ b/lizmap/resources/ui/ui_lizmap.ui @@ -4902,6 +4902,13 @@ This is different to the map maximum extent (defined in QGIS project properties, + + + + Safest conditions are when all checkbox are checked + + + diff --git a/lizmap/widgets/check_project.py b/lizmap/widgets/check_project.py index 5ac81aed..597900a3 100644 --- a/lizmap/widgets/check_project.py +++ b/lizmap/widgets/check_project.py @@ -66,7 +66,7 @@ def marker(self) -> QIcon: return QIcon(pixmap) def __str__(self): - return f'Severity {self.data} : {self.label}' + return f'' class Severities(Severity, Enum): @@ -89,7 +89,7 @@ def __init__(self, data: str, label: str, tooltip: str, icon: QIcon): self.tooltip = tooltip def __str__(self): - return f'{self.data} : {self.label}' + return f'<{self.data} : {self.label}>' class Levels: @@ -192,7 +192,7 @@ def html_tooltip(self, lizmap_cloud: bool = False) -> str: return html_str def __str__(self): - return f'{self.title} : {self.description_text(False)} :{self.level} → {self.severity}' + return f'<{self.title} : {self.description_text(False)} :{self.level} → {self.severity}>' # Check QGIS_VERSION_INT @@ -607,7 +607,7 @@ def __init__(self, source: str, check: Check, source_type=None): self.source_type = source_type def __str__(self): - return f'{self.source} : {self.check}' + return f'<{self.source} : {self.check}>' class TableCheck(QTableWidget):