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 JOIN, and I extend them
with something which adds join.
Here syntax changes from row.fieldname to row.tablename.fieldname and
my view raises an exception.
Thanks
Marin
On 9 Aug 2011 20:18, "Massimo Di Pierro" <massimo....@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 <marin.pran...@gmail.com> wrote:
> No, but it would not help me.
...
> On Tue, Aug 9, 2011 at 12:33 AM, pbreit <pbreitenb...@gmail.com> wrote:
> > I run into that proble...
rows = db(...).select(...)
rows.compact = False
and now you always have the rows[i].table.field syntax. no more
rows[i].field shortcuts.