Exemple #1
0
 def post(self):
     queue_status = self._queue_status_from_request()
     queue_status.put()
     RecordBotEvent.record_activity(queue_status.queue_name, queue_status.bot_id)
     if queue_status.active_patch_id:
         RecordPatchEvent.updated(queue_status.active_patch_id, queue_status.queue_name, queue_status.bot_id)
     Attachment.dirty(queue_status.active_patch_id)
     self.response.out.write(queue_status.key().id())
    def post(self):
        queue_status = QueueStatus()

        if users.get_current_user():
            queue_status.author = users.get_current_user()

        bug_id = self._int_from_request("bug_id")
        patch_id = self._int_from_request("patch_id")
        queue_name = self.request.get("queue_name")
        queue_status.queue_name = queue_name
        queue_status.active_bug_id = bug_id
        queue_status.active_patch_id = patch_id
        queue_status.message = self.request.get("status")
        results_file = self.request.get("results_file")
        queue_status.results_file = db.Blob(str(results_file))
        queue_status.put()
        Attachment.dirty(patch_id)
        self.response.out.write(queue_status.key().id())
    def post(self):
        queue_status = QueueStatus()

        if users.get_current_user():
            queue_status.author = users.get_current_user()

        bug_id = self._int_from_request("bug_id")
        patch_id = self._int_from_request("patch_id")
        queue_name = self.request.get("queue_name")
        queue_status.queue_name = queue_name
        queue_status.active_bug_id = bug_id
        queue_status.active_patch_id = patch_id
        queue_status.message = self.request.get("status")
        results_file = self.request.get("results_file")
        queue_status.results_file = db.Blob(str(results_file))
        queue_status.put()
        Attachment.dirty(patch_id)
        self.response.out.write(queue_status.key().id())
Exemple #4
0
 def post(self):
     queue_status = self._queue_status_from_request()
     queue_status.put()
     self._update_active_work_items(queue_status)
     Attachment.dirty(queue_status.active_patch_id)
     self.response.out.write(queue_status.key().id())
 def post(self):
     queue_status = self._queue_status_from_request()
     queue_status.put()
     Attachment.dirty(queue_status.active_patch_id)
     self.response.out.write(queue_status.key().id())