I'm writing a really tiny WSGI app just for fun. Right now, it looks like this:
from flup.server.scgi import WSGIServer WSGIServer(s).run() The s object is the an app that dispatches to other apps based on the URL. Are there any instructions written for using SQLAlchemy in this context? I'm looking for advice on a few things: 1. How to wrap every page view in a transaction that is committed by default or rolled back when the app raises an exception. 2. How to set up the connections once and then reuse them on each page load. The first thing I looked for was some SQL Alchemy middleware. I found SQLAlchemyManager, but it explicitly states it is NOT the recommended way. Is it still safe to use? More generally, all advice on using SQLAlchemy + homemade WSGI would be helpful. Thanks! Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---