self.wms = WebMapService(url=self.env("URL"), version=self.env("VERSION"))
def set_auth(self):
user = self.env("NTLM_USER")
password = self.env("NTLM_PASSWORD")
return HttpNtlmAuth(user, password) if user is not None and password is not None else None
def _read_env(self):
env = environ.Env(
After Change
self.wms = WebMapService(url=self.config.get(section="WMS", option="Url"),
version=self.config.get(section="WMS", option="Version"))
def set_auth(self):
user = self.config.get(section="CREDENTIALS", option="NtlmUser", fallback=None)
password = self.config.get(section="CREDENTIALS", option="NtlmPassword", fallback=None)
return HttpNtlmAuth(user, password) if user is not None and password is not None else None
def _read_wms_config(self):