def post(self): try: ret = do_post_cmd(self.json_args["cmd"], self.json_args["data"]) except Exception as e: log("put", self.json_args, e) ret = "Fail" self.write(json_encode(ret))
def post(self): model = get_model() client = get_client(model) ret = do_post_cmd(model, self.json_args["cmd"], client) self.write(json_encode(ret))
def post(self): ret = do_post_cmd(self.json_args["cmd"]) self.write(json_encode(ret))