I'm writing a little web app with webpy, and I'm wondering if anyone has any information on a little problem I'm having.
I've written a little ORM system, and it seems to be working pretty well. Ideally I'd like to stitch it in with webpy, but it appears that just using it as is causes thread issues (DB connection is instantiated/accessed across thread boundaries, or so the exception states).
Does anyone know how I can (within the webpy) create my DB connection on the same thread as the rest of the page handling code will be?