| err, thast a little jumbled up...you dont need to use get_session since you already have the session you want to work with...get_session() also does not take a "Session" object as the argument, it takes an object instance which has an associated Session. the basic idea, using the methods youre getting at, looks like: session = objectstore.Session() x = Order(_sa_session =session) orders = list(self.order_mapper.using(session).select(limit=10)) # do stuff # commit, can do it in any thread session.commit() On Mar 29, 2006, at 3:34 AM, Koen Bok wrote:
|
- [Sqlalchemy-users] objectstore.commit() within a thread? Koen Bok
- Re: [Sqlalchemy-users] objectstore.commit() within a t... Jonathan Ellis
- Re: [Sqlalchemy-users] objectstore.commit() within... Koen Bok
- Re: [Sqlalchemy-users] objectstore.commit() within... Koen Bok
- Re: [Sqlalchemy-users] objectstore.commit() wi... Jonathan Ellis
- Re: [Sqlalchemy-users] objectstore.commit(... Koen Bok
- Re: [Sqlalchemy-users] objectstore.co... Jonathan Ellis
- Re: [Sqlalchemy-users] objectstore.commit(... Michael Bayer
- Re: [Sqlalchemy-users] objectstore.co... Michael Bayer

