73 |
|
|
74 |
def EndReportTitle(self, reporttitle): |
def EndReportTitle(self, reporttitle): |
75 |
self._reporttitle = reporttitle |
self._reporttitle = reporttitle |
76 |
self.writeout(' <h1>%s</h1>\n<hr>\n' % self._reporttitle.encode(gConfig('textEncoding'),'replace')) |
self.writeout(' <h1>%s</h1>\n<hr>\n' % self._reporttitle) |
77 |
|
|
78 |
def BeginSection(self): |
def BeginSection(self): |
79 |
pass |
pass |
86 |
|
|
87 |
def EndSectionTitle(self, sectiontitle): |
def EndSectionTitle(self, sectiontitle): |
88 |
self._sectiontitle = sectiontitle |
self._sectiontitle = sectiontitle |
89 |
self.writeout(' <h2>%s</h2>\n' % self._sectiontitle.encode(gConfig('textEncoding'),'replace')) |
self.writeout(' <h2>%s</h2>\n' % self._sectiontitle) |
90 |
|
|
91 |
def BeginTable(self): |
def BeginTable(self): |
92 |
self._odd = 1 |
self._odd = 1 |
108 |
def EndColHead(self, colhead, width, alignment=None): |
def EndColHead(self, colhead, width, alignment=None): |
109 |
self._colalign.append(alignment) |
self._colalign.append(alignment) |
110 |
self.writeout('align="%s">%s</th>\n' % (alignment, |
self.writeout('align="%s">%s</th>\n' % (alignment, |
111 |
colhead.encode(gConfig('textEncoding'),'replace'))) |
colhead)) |
112 |
|
|
113 |
def BeginRow(self, rowtype=None): |
def BeginRow(self, rowtype=None): |
114 |
self._rowtype = rowtype |
self._rowtype = rowtype |
131 |
self.writeout(' <td class="item" ') |
self.writeout(' <td class="item" ') |
132 |
|
|
133 |
def EndCol(self, col, index): |
def EndCol(self, col, index): |
134 |
self.writeout('align="%s">%s</td>\n' % (self._colalign[index], |
self.writeout('align="%s">%s</td>\n' % (self._colalign[index],col)) |
|
col.encode(gConfig('textEncoding'),'replace'))) |
|
135 |
|
|
136 |
|
|
137 |
STYLE = """body { |
STYLE = """body { |