opc_ua/client.py
branchwxPython4
changeset 3674 d10a7907fb43
parent 3652 b5c6bb72bfc9
child 3678 6c496a8ed2a9
equal deleted inserted replaced
3673:6a04e7a90ceb 3674:d10a7907fb43
    86     """
    86     """
    87 
    87 
    88     EditorType = OPCUAClientEditor
    88     EditorType = OPCUAClientEditor
    89 
    89 
    90     def __init__(self):
    90     def __init__(self):
    91         self.modeldata = OPCUAClientModel(self.Log)
    91         self.modeldata = OPCUAClientModel(self.Log, self.CTNMarkModified)
    92 
    92 
    93         filepath = self.GetFileName()
    93         filepath = self.GetFileName()
    94         if os.path.isfile(filepath):
    94         if os.path.isfile(filepath):
    95             self.modeldata.LoadCSV(filepath)
    95             self.modeldata.LoadCSV(filepath)
    96 
    96 
    97     def Log(self, msg):
    97     def Log(self, msg):
    98         self.GetCTRoot().logger.write(msg)
    98         self.GetCTRoot().logger.write(msg)
    99 
    99 
   100     def GetModelData(self):
   100     def GetModelData(self):
   101         return self.modeldata
   101         return self.modeldata
   102     
   102 
   103     def GetConfig(self):
   103     def GetConfig(self):
   104         cfg = lambda path: self.GetParamsAttributes("OPCUAClient."+path)["value"]
   104         cfg = lambda path: self.GetParamsAttributes("OPCUAClient."+path)["value"]
   105         AuthType = cfg("AuthType")
   105         AuthType = cfg("AuthType")
   106         res = dict(URI=cfg("Server_URI"), AuthType=AuthType)
   106         res = dict(URI=cfg("Server_URI"), AuthType=AuthType)
   107 
   107