def configure(self,config): set_attribute(self, 'mac_address', self.mac_address, config) #mac address of client self.mac_address = aero.MacAddress(self.mac_address) self.dev = self.mac_address.value Port.configure(self,config) set_attribute(self, 'parity', parity_to_int('none'), config, parity_to_int) set_attribute(self, 'baud', 9600, config, str) if self.baud == 'Custom': self.baud = -1 # flag for later processing of custom_baud else: self.baud = int(self.baud) # normal path set_attributes(self, (('bits',8), ('stop_bits',1), ('dump_cpl',16)), config, int) set_attribute(self, 'custom_baud', 76800, config, int) set_attribute(self, 'flow_control', flowctl_to_int('none'), config, flowctl_to_int) set_attribute(self, 'lock_directory', properties.get('VAR_LOCK'), config, str) set_attribute(self, 'debug', self.parent.debug, config, int)
def configure(self, config_dict): Port.configure(self, config_dict) Modem.configure(self, config_dict) self._msglog('Configured internal modem %s' % self.dev)
def configure( self, config_dict ): Port.configure( self, config_dict ) Modem.configure( self, config_dict ) self._msglog( 'Configured internal modem %s' % self.dev )