Re: [Twisted-Python] Sharing a database connection in web server

2013-12-19 Thread Matt Haggard
Matthew, I've found klein to be really useful for this. Especially the ability to have non-global state: https://github.com/twisted/klein#non-global-state Matt On Thu, Dec 19, 2013 at 1:05 PM, Matthew Wollenweber wrote: > Hello, > > Could someone please let me know the preferred method for sha

[Twisted-Python] Sharing a database connection in web server

2013-12-19 Thread Matthew Wollenweber
Hello, Could someone please let me know the preferred method for sharing a database connection within a twisted.web.server instance? I've found that adbapi is the preferred method to avoid blocking when making database calls, however I'm still struggling how to share a database connection within t