def group_rheader(r, tabs=[]):
 if (r.representation == 'html'):
  if (r.record is None):
   return None
  tabs = [(T('Basic Details'), None), (T('Problems'), 'problem')]
  group = r.record
  duser = s3db.delphi_DelphiUser(group.id)
  if duser.authorised:
   tabs.append((T('Membership'), 'membership'))
  rheader_tabs = s3_rheader_tabs(r, tabs)
  rheader = DIV(TABLE(TR(TH(('%s: ' % T('Group'))), group.name), TR(TH(('%s: ' % T('Description'))), group.description), TR(TH(('%s: ' % T('Active'))), group.active)), rheader_tabs)
  return rheader

def group_rheader ( r , tabs = [ ] ) : if ( r . representation == 'html' ) : if ( r . record is None ) : return None tabs = [ ( T ( 'Basic Details' ) , None ) , ( T ( 'Problems' ) , 'problem' ) ] group = r . record duser = s3db . delphi_DelphiUser ( group . id ) if duser . authorised : tabs . append ( ( T ( 'Membership' ) , 'membership' ) ) rheader_tabs = s3_rheader_tabs ( r , tabs ) rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % T ( 'Group' ) ) ) , group . name ) , TR ( TH ( ( '%s: ' % T ( 'Description' ) ) ) , group . description ) , TR ( TH ( ( '%s: ' % T ( 'Active' ) ) ) , group . active ) ) , rheader_tabs ) return rheader
group rheader .