

def get_index_cb(self, handle, connection, key, value, *args, **kwargs):
    ' Index operation response\n        '
    _log.debug(('get index cb (in control) %s, %s' % (key, value)))
    self.send_response(handle, connection, (None if (value is None) else json.dumps({
        'result': value,
    })), status=(calvinresponse.NOT_FOUND if (value is None) else calvinresponse.OK))

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py CalvinControl.get_index_cb/original