def dataReceived(self, packet): data = PackUtils.unpack(packet) self.send_locked = False self.response(data, self.request, self.func_name, self.args)
def call_remote(self, request, func_name, args): self.logger.debug("UX:calling %s" % (func_name)) try: packet = PackUtils.pack([func_name, args]) except Exception, e: self.logger.warn("UX call pack method failed: %s" % str(e))
def call_remote(self, request, func_name, args): self.logger.debug("UX:calling %s" %(func_name)) try : packet = PackUtils.pack([func_name, args]) except Exception, e: self.logger.warn("UX call pack method failed: %s" % str(e))