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

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to