well,  f._db will give you the connection object....
f._db._dbname   will give you the database name (e.g., 'sqlite')

On Tue, Dec 16, 2008 at 10:55 PM, DenesL <[email protected]> wrote:

>
> Just out of curiosity, can I find out the name of the variable storing
> the SQLDB object from a field?.
>
> One usually defines :
> db=SQLDB(...)
> db.define_table('table', SQLField('field1'),...)
>
> if f=db.table.field1
> then f.name is 'field1'
> and f._tablename='table'
> is there an easy way to get 'db'?
>
> Thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to