def delete(self, request): Todo.get_by_id(request.id).key.delete() return messages.DeleteResponse()
def retrieve(self, request): r = Todo.get_by_id(request.id) return messages.RetrieveResponse(item=r.to_message())