示例#1
0
 def delete(self, request):
     Todo.get_by_id(request.id).key.delete()
     return messages.DeleteResponse()
示例#2
0
 def retrieve(self, request):
     r = Todo.get_by_id(request.id)
     return messages.RetrieveResponse(item=r.to_message())