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 pattern for web >> applications is to create a new session for each transaction (if the >> user does not like it, then it can use its how logic). > > well you could have a single session that uses multiple transactions. > This is actually more common. >
Right, thanks. I will add code for storing the session inside the environ dictionary. def scoped_session(environ, **kwargs) where the session factory is stored inside the environ, too. >> My problem is with contextual connections. > > the connection-based approach should work as well. whats the problem ? > No problems, I was asking because I was not sure. Thanks again Manlio Perillo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
