etherlab/etherlab.py
changeset 2077 14dfb786c53e
parent 2074 bf2fa4cb62a9
child 2079 49242019a9ca
equal deleted inserted replaced
2075:21eb91dc7071 2077:14dfb786c53e
   131             return value, True
   131             return value, True
   132         elif path == "SlaveParams.Alias":
   132         elif path == "SlaveParams.Alias":
   133             self.CTNParent.SetSlaveAlias(position, value)
   133             self.CTNParent.SetSlaveAlias(position, value)
   134             return value, True
   134             return value, True
   135         
   135         
   136         value, changed = ConfigTreeNode.SetParamsAttribute(self, path, value)
       
   137         # Filter IEC_Channel, Slave_Type and Alias that have specific behavior
   136         # Filter IEC_Channel, Slave_Type and Alias that have specific behavior
   138         if path == "BaseParams.IEC_Channel":
   137         if path == "BaseParams.IEC_Channel":
   139             self.CTNParent.SetSlavePosition(position, value)
   138             self.CTNParent.SetSlavePosition(position, value)
   140         
   139         
   141         return value, changed
   140         return ConfigTreeNode.SetParamsAttribute(self, path, value)
   142 
   141     
   143     def GetSlaveInfos(self):
   142     def GetSlaveInfos(self):
   144         return self.CTNParent.GetSlaveInfos(self.GetSlavePos())
   143         return self.CTNParent.GetSlaveInfos(self.GetSlavePos())
   145     
   144     
   146     def GetVariableLocationTree(self):
   145     def GetVariableLocationTree(self):
   147         return  {"name": self.BaseParams.getName(),
   146         return  {"name": self.BaseParams.getName(),