6.14.5.11. Identifier Cross Reference Table

Start python section to interscript/weavers/html.py[14 /22 ] Next Prev First Last
   413: #line 463 "html_weaver.ipk"
   414:   def identifier_reference(self, hlevel=2, *args, **kwds):
   415:     ids = self.master.ids
   416:     if not ids:
   417:       ids = self.pass_frame.ids
   418:     keys = ids.keys()
   419:     keys.sort()
   420:     if hlevel>0:
   421:       self.head(hlevel,'Index of Identifiers')
   422:     self._writeline('<TABLE COLS="2" BORDER="1" CELLPADDING="2">')
   423:     for k in keys:
   424:       refs = ids[k]
   425:       self._write('<TR><TD VALIGN="Top"><CODE> '+k+' </CODE></TD><TD> ')
   426:       old_df = ''
   427:       for sf,sc,df,dc in refs:
   428:         if old_df != '': self._write(', ')
   429:         if old_df != df:
   430:           self._write(df+': <A HREF=#'+sf+':'+str(sc)+'>'+str(dc)+'</A>')
   431:           old_df = df
   432:         else:
   433:           self._write('<A HREF=#'+sf+':'+str(sc)+'>'+str(dc)+'</A>')
   434:       self._write('</TD></TR>')
   435:     self._writeline('</TABLE>')
   436: 
End python section to interscript/weavers/html.py[14]