def assess_rheader(r, tabs=[]):
 if (r.representation == 'html'):
  rheader_tabs = s3_rheader_tabs(r, tabs)
  assess = r.record
  if assess:
   table = db.assess_assess
   rheader = DIV(TABLE(TR(TH(('%s: ' % T('Date & Time'))), table.datetime.represent(assess.datetime), TH(('%s: ' % T('Location'))), table.location_id.represent(assess.location_id), TH(('%s: ' % T('Assessor'))), table.assessor_person_id.represent(assess.assessor_person_id))), rheader_tabs)
   return rheader
 return None

def assess_rheader ( r , tabs = [ ] ) : if ( r . representation == 'html' ) : rheader_tabs = s3_rheader_tabs ( r , tabs ) assess = r . record if assess : table = db . assess_assess rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % T ( 'Date & Time' ) ) ) , table . datetime . represent ( assess . datetime ) , TH ( ( '%s: ' % T ( 'Location' ) ) ) , table . location_id . represent ( assess . location_id ) , TH ( ( '%s: ' % T ( 'Assessor' ) ) ) , table . assessor_person_id . represent ( assess . assessor_person_id ) ) ) , rheader_tabs ) return rheader return None
resource headers for flexible impact assessments .