def Layout(self, request, response):
    if request.REQ.get("task_id") is None:
      return

    client_id = rdf_client.ClientURN(request.REQ.get("client_id"))
    task_id = "task:" + request.REQ.get("task_id")

    # Make a local QueueManager.
    manager = queue_manager.QueueManager(token=request.token)
    msgs = manager.Query(client_id, task_id=task_id)
    if msgs:
      self.msg = msgs[0]
      self.view = semantic.FindRendererForObject(
          self.msg).RawHTML(request)

    return super(RequestRenderer, self).Layout(request, response)
Layout.
dataset/ETHPy150Open google/grr/grr/gui/plugins/inspect_view.py/RequestRenderer.Layout