def tour_rheader(r):
 if (r.representation == 'html'):
  tour = r.record
  if tour:
   T = current.T
   tabs = [(T('Edit Details'), None), (T('Details'), 'details'), (T('People'), 'user')]
   rheader_tabs = s3_rheader_tabs(r, tabs)
   table = r.table
   rheader = DIV(TABLE(TR(TH(('%s: ' % table.name.label)), tour.name), TR(TH(('%s: ' % table.code.label)), tour.code)), rheader_tabs)
   return rheader
 return None

def tour_rheader ( r ) : if ( r . representation == 'html' ) : tour = r . record if tour : T = current . T tabs = [ ( T ( 'Edit Details' ) , None ) , ( T ( 'Details' ) , 'details' ) , ( T ( 'People' ) , 'user' ) ] rheader_tabs = s3_rheader_tabs ( r , tabs ) table = r . table rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % table . name . label ) ) , tour . name ) , TR ( TH ( ( '%s: ' % table . code . label ) ) , tour . code ) ) , rheader_tabs ) return rheader return None
resource header for guided tour .