Not strictly speaking a repoze question, but the people who live here
have likely bumped into this, and I value your wise opinions :-)
So, SQLAlchemy takes care of having one session per thread and a
connection pool for you, however what about resources where that's not
the case.
For me, it's
This currently lives in a specific project but I have considered
pulling it out and making it more general:
http://bfg.repoze.org/pastebin/715
The main thing you would need to do to make it a general purpose
ResourcePool would be to pass a resource_factory callable into the
constructor and,
Chris Rossi wrote:
This currently lives in a specific project but I have considered
pulling it out and making it more general:
http://bfg.repoze.org/pastebin/715
Any reason you don't just use SQLAlchemy?
Chris
___
Repoze-dev mailing list