[Twisted-web] Nevow - how to render sequence into 3 column table

Paul Reznicek maillists at ivsn.com
Wed Dec 7 10:17:46 MST 2005


Leif K-Brooks wrote:
>> The result should looks like:
>>    <table>
>>      <tr>
>>        <td>Alfred is 15</td>
>>        <td>Mary is 17</td>
>>        <td>Bob is 25</td>
>>      </tr>
>>      ...
>>      <tr>
>>        <td>Molly is 22</td>
>>        <td>Manfred is 33</td>
>>      </tr>
>>    </table>
> 
> If all you really want to do is have the names and ages displayed next
> to each other, why not use ordinary nevow:render="sequence" along with
> CSS? A demonstration of the stylesheet you'll need is at
> <http://tw.ecritters.biz/html_examples/tile/>.

Thanks for this hint, it solve 50% of my needs ...
There is one reason, why I'd like prefer the <table> solution:
the variable column width!
In real, I'd like to use this for database field editing and the variable
field width get very important.

But your way is better than no way !!!
Paul



More information about the Twisted-web mailing list