Hi there, Michael Bayer wrote: [snip] > I think the solution here at the least would be to remove prominent > advertisement > of "create_session()". I'm not sure yet about > deprecation/non-publicizing it. I still think its a useful function > for ad-hoc creation of sessions with no extra behavior but this may > very well be just my skewed view of it.
The reason I'm using create_session is because I don't see a way to use sessionmaker in the Zope integration code. This is because I have my own session factory that I pass to scoped_session. Before I was using the actual Session class directly, but I figured create_session would be better. I noticed then that sessionmaker takes different defaults than create_session, and the defaults used by sessionmaker for autocommit and autoflush were the ones I actually need. Anyway, I work around this in my integration code by putting the defaults back to those as used by sessionmaker, but it rather surprised me to notice the difference. Regards, Martijn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
