[sqlalchemy] Re: integrating SQLAlchemy in a WSGI based framework

2008-07-09 Thread Manlio Perillo
Michael Bayer ha scritto: On Jul 8, 2008, at 2:50 PM, Manlio Perillo wrote: Michael Bayer ha scritto: [...] Current integration approaches focus on the scoped_session() construct as home base for the current transaction. Ah, sorry. Sessions are not a problem, since the common

[sqlalchemy] Re: integrating SQLAlchemy in a WSGI based framework

2008-07-08 Thread Michael Bayer
On Jul 8, 2008, at 2:04 PM, Manlio Perillo wrote: I'm thinking to add a function: # XXX add support for additional parameters like close_with_result? def contextual_connect(environ, engine): connection = environ.get('wsgix.dbapi.contextual_connection') if connection is None:

[sqlalchemy] Re: integrating SQLAlchemy in a WSGI based framework

2008-07-08 Thread Manlio Perillo
Michael Bayer ha scritto: About integrating SQLAlchemy in WSGI with a per request scoped session. [...] Current integration approaches focus on the scoped_session() construct as home base for the current transaction. This is an adaption of 0.3's SessionContext, and the idea is the

[sqlalchemy] Re: integrating SQLAlchemy in a WSGI based framework

2008-07-08 Thread Manlio Perillo
Michael Bayer ha scritto: [...] Current integration approaches focus on the scoped_session() construct as home base for the current transaction. Ah, sorry. Sessions are not a problem, since the common pattern for web applications is to create a new session for each transaction (if the

[sqlalchemy] Re: integrating SQLAlchemy in a WSGI based framework

2008-07-08 Thread Michael Bayer
On Jul 8, 2008, at 2:50 PM, Manlio Perillo wrote: Michael Bayer ha scritto: [...] Current integration approaches focus on the scoped_session() construct as home base for the current transaction. Ah, sorry. Sessions are not a problem, since the common pattern for web applications is