6.4.5.17. Tables

6.4.5.17. Tables

Start python section to interscript/weavers/html.py[20]
   497: #line 553 "html_weaver.ipk"
   498:   def begin_table(self, *headings, **kwds):
   499:     border=kwds.get('border',2)
   500:     tbclass = kwds.get('CLASS','DEFAULT_TABLE_CLASS')
   501:     self._writeline('<TABLE CLASS="'+tbclass+'" COLS="'+str(len(headings))+'" BORDER="'+str(border)+'"><TR>')
   502:     for h in headings:
   503:       self._write('<TH>')
   504:       self.write(h)
   505:       self._write('</TH>')
   506:     self._writeline('</TR>')
   507: 
   508:   def table_row(self,data):
   509:     self._write('<TR>')
   510:     for d in data:
   511:       self._write('<TD VALIGN="TOP">')
   512:       lines = string.split(d,'\n')
   513:       for line in lines:
   514:         self.write(line)
   515:         self._write('<BR>')
   516:       self._write('</TD>')
   517:     self._writeline('</TR>')
   518: 
   519:   def end_table(self):
   520:     self._writeline('</TABLE>')
   521: 
End python section to interscript/weavers/html.py[20]