diff --git a/lizmap/definitions/warnings.py b/lizmap/definitions/warnings.py index ddf089d8..b137d81e 100644 --- a/lizmap/definitions/warnings.py +++ b/lizmap/definitions/warnings.py @@ -10,6 +10,6 @@ class Warnings(Enum): OgcNotValid = 'ogc_not_valid' UseLayerIdAsName = 'use_layer_id_as_name' - SaasLizmapDotCom = 'saas_lizmap_dot_com_invalid' + SaasLizmapCloud = 'saas_lizmap_cloud_invalid' InvalidFieldType = 'invalid_field_type' DuplicatedLayersWithFilters = 'duplicated_layers_with_filters' diff --git a/lizmap/dialogs/server_wizard.py b/lizmap/dialogs/server_wizard.py index 5c37467b..94c62893 100644 --- a/lizmap/dialogs/server_wizard.py +++ b/lizmap/dialogs/server_wizard.py @@ -335,7 +335,7 @@ def nextId(self) -> int: """ Next page, according to lizmap.com hosting. """ # Temporary disable the PG page # parent_wizard: ServerWizard = self.wizard() - # if parent_wizard.is_lizmap_dot_com: + # if parent_wizard.is_lizmap_cloud: # LOGGER.debug("After saving the auth ID, go the PostgreSQL page.") # return WizardPages.AddOrNotPostgresqlPage @@ -765,7 +765,7 @@ def __init__(self, parent=None, existing: list = None, url: str = '', auth_id: s self.auth_id = auth_id self.server_info = None - self.is_lizmap_dot_com = False + self.is_lizmap_cloud = False self.has_repository = None self.dav_url = None self.dav_path = None @@ -1081,7 +1081,7 @@ def request_check_url(self, url: str, login: str, password: str) -> Tuple[bool, return False, message, True self.server_info = content - self.is_lizmap_dot_com = content.get('hosting', '') == 'lizmap.com' + self.is_lizmap_cloud = content.get('hosting', '') == 'lizmap.com' self.has_repository = True if len(content.get('repositories', [])) >= 1 else False if any(item in version() for item in UNSTABLE_VERSION_PREFIX): # Debug for devs diff --git a/lizmap/plugin.py b/lizmap/plugin.py index 0067b290..915fbda6 100755 --- a/lizmap/plugin.py +++ b/lizmap/plugin.py @@ -350,7 +350,7 @@ def write_log_message(message, tag, level): self.dlg.label_action_scope_layer_project, ] - self.lizmap_dot_com = [ + self.lizmap_cloud = [ self.dlg.label_lizmap_search_grant, ] @@ -811,7 +811,7 @@ def target_server_changed(self): self.check_webdav() lizmap_cloud = is_lizmap_cloud(current_metadata) - for item in self.lizmap_dot_com: + for item in self.lizmap_cloud: item.setVisible(lizmap_cloud) # For deprecated features in LWC 3.7 about base layers @@ -2827,7 +2827,7 @@ def project_config_file(self, lwc_version: LwcVersions, with_gui: bool = True, c if check_server and is_lizmap_cloud(server_metadata): error, results, more = valid_lizmap_cloud(self.project, lwc_version) if error: - warnings.append(Warnings.SaasLizmapDotCom.value) + warnings.append(Warnings.SaasLizmapCloud.value) message = tr('Some configurations are not valid when used with a Lizmap.com hosting :')