6.14.5.12. Class Reference Table

Start python section to interscript/weavers/html.py[15 /22 ] Next Prev First Last
   437: #line 488 "html_weaver.ipk"
   438:   def class_reference(self, hlevel=2, *args, **kwds):
   439:     ids = self.master.classes
   440:     if not ids:
   441:       ids = self.pass_frame.classes
   442:     keys = ids.keys()
   443:     keys.sort()
   444:     if hlevel>0:
   445:       self.head(hlevel,'Index of Classes')
   446:     self._writeline('<TABLE COLS="2" BORDER="1" CELLPADDING="2">')
   447:     for k in keys:
   448:       refs = ids[k]
   449:       self._write('<TR><TD VALIGN="Top"><CODE> '+k+' </CODE></TD><TD> ')
   450:       old_df = ''
   451:       for sf,sc,df,dc in refs:
   452:         if old_df != '': self._write(', ')
   453:         if old_df != df:
   454:           self._write(df+': <A HREF=#'+sf+':'+str(sc)+'>'+str(dc)+'</A>')
   455:           old_df = df
   456:         else:
   457:           self._write('<A HREF=#'+sf+':'+str(sc)+'>'+str(dc)+'</A>')
   458:       self._write('</TD></TR>')
   459:     self._writeline('</TABLE>')
   460: 
   461:   # create an HTML anchor
   462:   def set_fc_anchor(self,file,count):
   463:     self._write('<A NAME="'+file+':'+str(count)+'"></A>')
   464: 
End python section to interscript/weavers/html.py[15]