[web2py] Re: rows.response

2010-02-03 Thread carlo
thank you, carlo On 3 Feb, 00:46, mdipierro wrote: > Try this: > > {{db[table].id.represent=lambda id: A(id,_href=URL(r=request, > c='default',f='data_clienti',args=id,vars={'table':table})})) > {{=SQLTABLE(rows,_class='sortable',headers=dict([(rows.colnames[i],c) > for (i,c) in enumerate(colonn

[web2py] Re: rows.response

2010-02-02 Thread mdipierro
Try this: {{db[table].id.represent=lambda id: A(id,_href=URL(r=request, c='default',f='data_clienti',args=id,vars={'table':table})})) {{=SQLTABLE(rows,_class='sortable',headers=dict([(rows.colnames[i],c) for (i,c) in enumerate(colonne)]))}} On Feb 2, 11:13 am, carlo wrote: > thank you Massimo,

[web2py] Re: rows.response

2010-02-02 Thread carlo
thank you Massimo, this is my code snippet: {{for c in colonne:}} {{=c}}{{pass}} {{for r in rows.response:}} {{for k in range(len(r)):}} {{if k==0:}} {{=r[k]}} {{else:}} {{=r[k]}} {{pass}} {{pass}} {{pass}} On 2 Feb, 16:53, mdipierro wrote: > There is no more rows.response. That was an int

[web2py] Re: rows.response

2010-02-02 Thread mdipierro
There is no more rows.response. That was an internal variable. It is gone long ago. If you show us how you were using we can point to a simple fix. On Feb 2, 9:43 am, carlo wrote: > I must have missed something lately, so forgive my question if it is a > faq. > > I have an application where I use