This is a great option but what is the best practice then to have the 
represents-functionality still on board? It is a bit messy to do that 
totally on your own

On Friday, 30 November 2007 16:26:12 UTC+1, mdipierro wrote:
>
> What you try to do is too much personalization for sqltable. You 
> should not use SQLTABLE. make a view like 
>
> ---- mytable.html ---- 
> {{def mytable(records):}} 
> <table>{{for r in records:}}<tr>{{for k,v in r.items():}}<td>{{=v}}</ 
> td>{{pass}}</tr>{{pass}}</table> 
> {{return}} 
> ------------- 
>
> import it in your view with {{include 'mytable.html'}} and use it 
>
> {{mytable(db(...).select())}} 
>
> the you can personalize your table as you want and reuse it.

-- 



Reply via email to