def _subConfig_cb()

in leda_python/leda.py [0:0]


    def _subConfig_cb(self, code):
        syncMsg = {}
        syncMsg["state"] = False
        syncMsg["msg"] = None
        s = '%s:%s' % (funcname(), linenum())
        _logger.debug("%s,_subConfig_cb return code: %s", s, code)

        try:
            if (0 != code):
                s = '%s:%s' % (funcname(), linenum())
                _logger.warning("%s,rpc method: _subConfig_cb return code is error: %d" %
                                (s, code))
            else:

                syncMsg["msg"] = ''
                syncMsg["state"] = True
        except:
            s = '%s:%s' % (funcname(), linenum())
            _logger.exception("%s,Err", s)
            _logger.warning("%s,replyMsg is invalid", s)

        self.subConfigSync.set(syncMsg)