コード例 #1
0
    def list(self, req):
        cmd = jsonobject.loads(req[http.REQUEST_BODY])
        rsp = ListResponse()

        rsp.paths = kvmagent.listPath(cmd.path)
        return jsonobject.dumps(rsp)
コード例 #2
0
 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)
コード例 #3
0
    def list(self, req):
        cmd = jsonobject.loads(req[http.REQUEST_BODY])
        rsp = ListResponse()

        rsp.paths = kvmagent.listPath(cmd.path)
        return jsonobject.dumps(rsp)
コード例 #4
0
 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)