def list(self, req): cmd = jsonobject.loads(req[http.REQUEST_BODY]) rsp = ListResponse() rsp.paths = kvmagent.listPath(cmd.path) return jsonobject.dumps(rsp)
def get_sub_path(self, req): cmd = jsonobject.loads(req[http.REQUEST_BODY]) rsp = GetSubPathRsp() rsp.paths = kvmagent.listPath(cmd.path) return jsonobject.dumps(rsp)