示例#1
0
    def patch(self, artifact_id):
        """Patches a prep template in the system

        Follows the JSON PATCH specification:
        https://tools.ietf.org/html/rfc6902
        """
        req_op = self.get_argument('op')
        req_path = self.get_argument('path')
        req_value = self.get_argument('value', None)
        req_from = self.get_argument('from', None)

        with safe_execution():
            artifact_patch_request(self.current_user, artifact_id, req_op,
                                   req_path, req_value, req_from)

        self.finish()
示例#2
0
    def patch(self, artifact_id):
        """Patches a prep template in the system

        Follows the JSON PATCH specification:
        https://tools.ietf.org/html/rfc6902
        """
        req_op = self.get_argument('op')
        req_path = self.get_argument('path')
        req_value = self.get_argument('value', None)
        req_from = self.get_argument('from', None)

        with safe_execution():
            artifact_patch_request(self.current_user, artifact_id, req_op,
                                   req_path, req_value, req_from)

        self.finish()
示例#3
0
 def post(self, artifact_id):
     with safe_execution():
         res = artifact_post_req(self.current_user, artifact_id)
     self.write(res)
     self.finish()
示例#4
0
 def post(self, artifact_id):
     with safe_execution():
         res = artifact_summary_post_request(self.current_user, artifact_id)
     self.write(res)
示例#5
0
    def get(self, artifact_id):
        with safe_execution():
            res = artifact_summary_get_request(self.current_user, artifact_id)

        self.render("artifact_ajax/artifact_summary.html", **res)
示例#6
0
 def post(self, artifact_id):
     with safe_execution():
         res = artifact_post_req(self.current_user, artifact_id)
     self.write(res)
     self.finish()
示例#7
0
 def post(self, artifact_id):
     with safe_execution():
         res = artifact_summary_post_request(self.current_user, artifact_id)
     self.write(res)
示例#8
0
    def get(self, artifact_id):
        with safe_execution():
            res = artifact_summary_get_request(self.current_user, artifact_id)

        self.render("artifact_ajax/artifact_summary.html", **res)