....sorry - that is, an SQLStorage object... which (if you pay attention to
the contained objects) you can play around with quite a bit.,  e.g.:
f._db.tables
f._db.table.fields   # where, in your case, 'table' is your tablename;  note
that f._db.table is another SQLStorage object

Isn't this FUN?! ;-)

On Tue, Dec 16, 2008 at 11:26 PM, Yarko Tymciurak <[email protected]> wrote:

> 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