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))

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 .