I'm not sure if my code has closed the session, the context is:

import transaction
x_members = session.query(Distributor).join....

try:
   transaction.begin()
   for member in x_members:
        .....
except:
  transaction.abort()
BTW, I'm using pyramid framework, which is using the following statement to 
init the session:

DBSession = scoped_session(sessionmaker(
                             extension=ZopeTransactionExtension()))





-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/wlyafiBeEn0J.
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.

Reply via email to