本文整理汇总了Python中model.queuestatus.QueueStatus.results_file方法的典型用法代码示例。如果您正苦于以下问题:Python QueueStatus.results_file方法的具体用法?Python QueueStatus.results_file怎么用?Python QueueStatus.results_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model.queuestatus.QueueStatus
的用法示例。
在下文中一共展示了QueueStatus.results_file方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _queue_status_from_request
# 需要导入模块: from model.queuestatus import QueueStatus [as 别名]
# 或者: from model.queuestatus.QueueStatus import results_file [as 别名]
def _queue_status_from_request(self):
queue_status = QueueStatus()
# FIXME: I think this can be removed, no one uses it.
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))
return queue_status
示例2: post
# 需要导入模块: from model.queuestatus import QueueStatus [as 别名]
# 或者: from model.queuestatus.QueueStatus import results_file [as 别名]
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())