def cms_rheader(r, tabs=[]):
 if (r.representation != 'html'):
  return None
 record = r.record
 if (record is None):
  return None
 table = r.table
 resourcename = r.name
 T = current.T
 if (resourcename == 'series'):
  tabs = [(T('Basic Details'), None), (T('Posts'), 'post')]
  rheader_tabs = s3_rheader_tabs(r, tabs)
  rheader = DIV(TABLE(TR(TH(('%s: ' % table.name.label)), record.name)), rheader_tabs)
 elif (resourcename == 'post'):
  tabs = [(T('Basic Details'), None)]
  if record.replies:
   tabs.append((T('Comments'), 'discuss'))
  rheader_tabs = s3_rheader_tabs(r, tabs)
  rheader = DIV(TABLE(TR(TH(('%s: ' % table.name.label)), record.name)), rheader_tabs)
 return rheader

def cms_rheader ( r , tabs = [ ] ) : if ( r . representation != 'html' ) : return None record = r . record if ( record is None ) : return None table = r . table resourcename = r . name T = current . T if ( resourcename == 'series' ) : tabs = [ ( T ( 'Basic Details' ) , None ) , ( T ( 'Posts' ) , 'post' ) ] rheader_tabs = s3_rheader_tabs ( r , tabs ) rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % table . name . label ) ) , record . name ) ) , rheader_tabs ) elif ( resourcename == 'post' ) : tabs = [ ( T ( 'Basic Details' ) , None ) ] if record . replies : tabs . append ( ( T ( 'Comments' ) , 'discuss' ) ) rheader_tabs = s3_rheader_tabs ( r , tabs ) rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % table . name . label ) ) , record . name ) ) , rheader_tabs ) return rheader
cms resource headers .