Ignore:
Timestamp:
11/11/15 16:50:14 (5 years ago)
Author:
mjuckes
Message:

Updated setup for tag 01.beta.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/makeTables.py

    r465 r471  
    224224  def varLink(self,targ,frm=''): 
    225225    return '<li>%s: %s [%s]</li>' % (  targ.__href__(odir='../u/', label=targ.label), targ.title, targ.units ) 
     226 
    226227  def cmvLink(self,targ,frm=''): 
    227228    return '<li>%s {%s}: %s [%s]</li>' % (  targ.__href__(odir='../u/', label=targ.label), targ.mipTable, targ.title, targ.frequency ) 
     229 
     230  def vgrpLink(self,targ,frm=''): 
     231    gpsz = len(targ._inx.iref_by_sect[targ.uid].a['requestVar']) 
     232    nlnk = len(targ._inx.iref_by_sect[targ.uid].a['requestLink']) 
     233    return '<li>%s {%s}: %s variables, %s request links</li>' % (  targ.__href__(odir='../u/', label=targ.label), targ.mip, gpsz, nlnk ) 
    228234 
    229235styls = styles() 
     
    253259dq.itemStyles['var'] = styls.varLink 
    254260dq.itemStyles['CMORvar'] = styls.cmvLink 
     261dq.itemStyles['requestVarGroup'] = styls.vgrpLink 
    255262dq.itemStyles['requestLink'] = styls.rqlLink02 
    256263dq.coll['var'].items[0].__class__._linkAttrStyle['sn'] = styls.snLink01 
Note: See TracChangeset for help on using the changeset viewer.