On Thu, Mar 12, 2009 at 10:49 PM, mdipierro <[email protected]> wrote:

>
> yes. They are in organized by thread in the dict
>
> SQLDB._instances
>
> Look into sql.py SQLDB.close_all_instances for the a thread safe way
> of accessing them.


This is how you get connection objects, and close them off;

I think DenesL was asking how you get the objects defined in a connection (I
think he is preparing to write some test "view" code ;-)



>
> Massimo
>
> On Mar 12, 9:47 pm, DenesL <[email protected]> wrote:
> > Actually we are currently using views in a way.
> > When a table is migrated the old fields remain in there but we can not
> > see them.
> >
> > A seemingly unrelated question:
> > is there an easy way to get all the objects of type <class
> > 'gluon.sql.SQLDB'> ?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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