equal
deleted
inserted
replaced
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 def cfg(path): |
|
105 try: |
|
106 attr=self.GetParamsAttributes("OPCUAClient."+path) |
|
107 except ValueError: |
|
108 return None |
|
109 return attr["value"] |
|
110 |
105 AuthType = cfg("AuthType") |
111 AuthType = cfg("AuthType") |
106 res = dict(URI=cfg("Server_URI"), AuthType=AuthType) |
112 res = dict(URI=cfg("Server_URI"), AuthType=AuthType) |
107 |
113 |
108 paramList = authParams.get(AuthType, None) |
114 paramList = authParams.get(AuthType, None) |
109 if paramList: |
115 if paramList: |