How can I get a row from a DAL object if I know the associated id.

Example:

my_phones=db((db.prof_phone.pid==person_id)&(db.prof_phone.provider>1)).
select(db.prof_phone.ALL,db.provider.edomain,
       left=db.provider.on(db.provider.id==db.prof_phone.provider),orderby=
db.prof_phone.label)

Which gets me this object:
my_phones : 
prof_phone.id prof_phone.label prof_phone.phone prof_phone.provider 
provider.edomain
2         Cell                 (360) 123-9876         2               
 vmobl.com
3         Wife Cell        (360) 123-4567         2                vmobl.com

Now I want the data from the second row of the object which I know has the 
prof_phone.id of 3.

Like: Wife Cell, (360) 123-4567, vmobl.com

How do I get that data out of the object without iterating over eveything?

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to