1d70dc3a2c2793248da651f19f58e0dc42b98d86,src/data/orthofoto/wms/wms_api.py,WmsApi,set_auth,#WmsApi#,25

Before Change


        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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: geometalab/OSMDeepOD
Commit Name: 1d70dc3a2c2793248da651f19f58e0dc42b98d86
Time: 2016-12-28
Author: samuel.kurath@gmail.com
File Name: src/data/orthofoto/wms/wms_api.py
Class Name: WmsApi
Method Name: set_auth


Project Name: geometalab/OSMDeepOD
Commit Name: 1d70dc3a2c2793248da651f19f58e0dc42b98d86
Time: 2016-12-28
Author: samuel.kurath@gmail.com
File Name: src/data/orthofoto/wms/wms_api.py
Class Name: WmsApi
Method Name: get_image


Project Name: geometalab/OSMDeepOD
Commit Name: 1d70dc3a2c2793248da651f19f58e0dc42b98d86
Time: 2016-12-28
Author: samuel.kurath@gmail.com
File Name: src/data/orthofoto/wms/wms_api.py
Class Name: WmsApi
Method Name: set_auth


Project Name: geometalab/OSMDeepOD
Commit Name: 1d70dc3a2c2793248da651f19f58e0dc42b98d86
Time: 2016-12-28
Author: samuel.kurath@gmail.com
File Name: src/data/orthofoto/wms/wms_api.py
Class Name: WmsApi
Method Name: __init__