Yep it isnt working well inheriting from Row. 
The instance looks like a row, but all the db methods doesnt work. 
update_record, and such.

Following your advise and going back to web2py recursive selects i have 
this problem:

Given this schema:
- A company has groups and groups has subgroups
I need to list all subgroups that belongs to a company.

If i run:
subs = [s for s in g.subgroups.select() for g in db.company[1].groups.select
()]
i get an error 'g is not defined'

But if i run:

>> [g for g in db.company[1].groups.select()]

and then the same line above:

>> subs = [s for s in g.subgroups.select() for g in db.company[1].groups.
select()]

then it does work.
Ok i guess this happens because lazy selects.
In any case "i think" im performing 2 SQL instructions and 2 python loops. 
just to get the subgroups

Using joins, im performing 1 SQL instruction without loops. Thats why all 
the hassle with the inheritance thing.

Thanks

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to