本文整理匯總了Python中model.queuestatus.QueueStatus.message方法的典型用法代碼示例。如果您正苦於以下問題:Python QueueStatus.message方法的具體用法?Python QueueStatus.message怎麽用?Python QueueStatus.message使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類model.queuestatus.QueueStatus
的用法示例。
在下文中一共展示了QueueStatus.message方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _queue_status_from_request
# 需要導入模塊: from model.queuestatus import QueueStatus [as 別名]
# 或者: from model.queuestatus.QueueStatus import message [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 message [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())