def render_header(self): results = ['<tr>'] for column in itervalues(self._fields): results.append(column.render_header()) results.append('</tr>') return HTMLString(''.join(results))
def render_row(self, row): tds = ['<tr>'] for column in itervalues(self._fields): tds.append(column.render(row)) tds.append('</tr>') return HTMLString(''.join(tds))
def __iter__(self): return iter(itervalues(self._fields))