def org_facility_rheader(r, tabs=[]):
 T = current.T
 s3db = current.s3db
 (tablename, record) = s3_rheader_resource(r)
 r.record = record
 r.table = s3db[tablename]
 tabs = [(T('Details'), None)]
 try:
  tabs = (tabs + s3db.req_tabs(r))
 except:
  pass
 try:
  tabs = (tabs + s3db.inv_tabs(r))
 except:
  pass
 rheader_fields = [['name'], ['location_id']]
 rheader = S3ResourceHeader(rheader_fields, tabs)(r)
 return rheader

def org_facility_rheader ( r , tabs = [ ] ) : T = current . T s3db = current . s3db ( tablename , record ) = s3_rheader_resource ( r ) r . record = record r . table = s3db [ tablename ] tabs = [ ( T ( 'Details' ) , None ) ] try : tabs = ( tabs + s3db . req_tabs ( r ) ) except : pass try : tabs = ( tabs + s3db . inv_tabs ( r ) ) except : pass rheader_fields = [ [ 'name' ] , [ 'location_id' ] ] rheader = S3ResourceHeader ( rheader_fields , tabs ) ( r ) return rheader
rheader for facilities when doing a req_match .