I kinda have it but its very bad. i have to declare the connection as:

class customthread(Thread):
   def __init__
      ....
      self.db = DAL(cnnstring, migrate=False)
      self.db['dontclose'] = True


At gluon/packages/pydal/connection.py wich handles the ConnectionPool 
modify the line 56 as:

def close_all_instances(action):
    ...
     if hasattr(db, '_adapter') and not hasattr(db, "dontclose"):
         db._adapter.close(action)

I wish there were an easier way, and i dont really know the implications of 
doing this. Ill tests it and see how it goes...

Thanks


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