def __handle_kds_configure(self, seqno, packet): conf = datasource_pb2.Configure() conf.ParseFromString(packet) try: self.datasource_configure(seqno, conf) except AttributeError: self.send_datasource_configure_response( seqno, success=False, message="helper does not support source configuration")
def __handle_kds_configure(self, seqno, packet): conf = datasource_pb2.Configure() conf.ParseFromString(packet) if self.configuresource is None: self.send_datasource_configure_report(seqno, success=False, message="helper does not support source configuration") # self.spindown() return opts = self.configuresource(seqno, conf) if opts is None: self.send_datasource_configure_report(seqno, success=False, message="helper does not support source configuration") # self.spindown() return self.send_datasource_configure_report(seqno, **opts)