[Twisted-web] [Nevow] nested sequence pattern
Manlio Perillo
manlio_perillo at libero.it
Sat Jun 17 04:51:35 CDT 2006
Hi.
I have an SQL Table like:
field1, field2
A, 1
A, 2
A, 3
B, 4
B, 7
C, 2
I want to render it in a table like:
<body>
<table>
<caption>
My Table
</caption>
<thead>
<tr>
<th scope="col">field 1</th>
<th scope="col">field 2</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="rowgroup">A</td>
<td></td>
</tr>
<tr>
<td></td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>2</td>
</tr>
<tr>
<td></td>
<td>3</td>
</tr>
</tbody>
<tbody>
<tr>
<td scope="rowgroup">B</td>
<td></td>
</tr>
<tr>
<td></td>
<td>4</td>
</tr>
<tr>
<td></td>
<td>7</td>
</tr>
</tbody>
<tbody>
<tr>
<td scope="rowgroup">C</td>
<td></td>
</tr>
<tr>
<td></td>
<td>2</td>
</tr>
</tbody>
</table>
</body>
Is this possible with Nevow template? And how?
Thanks Manlio Perillo
More information about the Twisted-web
mailing list