Re: [web2py] Re: Forcing table name in row object?

2011-08-09 Thread Marin Pranjic
No, but it would not help me. I want to implement dynamic queries, actually support adding some WHERE and SELECT parts in query (extending original queries). And iteration through Rows object should work without knowing did query had JOINs or not. Problem is when original query does not have

[web2py] Re: Forcing table name in row object?

2011-08-09 Thread Massimo Di Pierro
Now I understand: rows = db(...).select(...) rows.compact = False and now you always have the rows[i].table.field syntax. no more rows[i].field shortcuts. Massimo On Aug 9, 1:06 pm, Marin Pranjic marin.pran...@gmail.com wrote: No, but it would not help me. I want to implement dynamic

Re: [web2py] Re: Forcing table name in row object?

2011-08-09 Thread Marin Pranjic
Thanks Marin On 9 Aug 2011 20:18, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Now I understand: rows = db(...).select(...) rows.compact = False and now you always have the rows[i].table.field syntax. no more rows[i].field shortcuts. Massimo On Aug 9, 1:06 pm, Marin Pranjic

Re: [web2py] Re: Forcing table name in row object?

2011-08-09 Thread Bruno Rocha
rows = db(...).select(...) rows.compact = False and now you always have the rows[i].table.field syntax. no more rows[i].field shortcuts. Thank you Massimo, this will save some 'ifs' that i've made in my plugins.

[web2py] Re: Forcing table name in row object?

2011-08-08 Thread pbreit
I run into that problem a lot as well and haven't figured out the best way to handle it. Is it possible to do something like this? for item, auth_user in rows.item, rows.auth_user: ...