rtn is a set of rows. There is no exposed api to access the original db 
connection since it may or may not exist. The db connection from which the 
data was fetched may be closed.

That said rtn[0] is the first row. rtn[0].delete_record is a callable 
object and rtn[0].delete_record.db is what you are looking for.

On Wednesday, 1 May 2013 02:49:54 UTC-5, lucas wrote:
>
> i think i am asking this properly.  if i do 
>
> rtn = db(...query stuff...).select()
>
> and then pass it as a parameter to a function like
>
> some_fxn(rtn)
>
> is there a property in this rtn instance to allow me to read and access 
> the original db instance?  i need to run another query in some_fxn off of 
> db but some_fxn in located in a py file under modules and modules does seem 
> to have automatic access to db.
>
> lucas
>

-- 

--- 
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/groups/opt_out.


Reply via email to