def render_record(response, record, file_url=None, extra_data=None):

  data = {}
  if extra_data is not None:
    data.update(extra_data)


  if record is None:

    if extra_data is None:
      response.set_status(404)

    response.out.write(render('details.html', data))
    return

  data.update(get_details_data(record, file_url))
  response.out.write(render('details.html', data))
Render an appstats record in detail.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/appstats/ui.py/render_record