[sqlalchemy] how to implement nested scoped_session

2012-11-17 Thread sajuptpm
Hi, Getting error when nesting scoped_session http://stackoverflow.com/questions/13330245/how-to-use-nested-transaction-with-scoped-session-in-sqlalchemy https://groups.google.com/forum/?fromgroups=#!topic/sqlalchemy/E8QEtj35TEY Thanks -- You received this message because you are subscribed

Re: [sqlalchemy] how to implement nested scoped_session

2012-11-17 Thread Michael Bayer
On Nov 18, 2012, at 1:29 AM, sajuptpm wrote: Hi, Getting error when nesting scoped_session http://stackoverflow.com/questions/13330245/how-to-use-nested-transaction-with-scoped-session-in-sqlalchemy https://groups.google.com/forum/?fromgroups=#!topic/sqlalchemy/E8QEtj35TEY answer posted

Re: [sqlalchemy] Re: ObjectDeletedError: Instance 'xxx' has been deleted

2012-11-17 Thread Michael Bayer
On Nov 17, 2012, at 1:16 AM, sajuptpm wrote: H, Michael Bayer Thanks You are correct, the rollback in method1 rollbacking transaction in main_method. I want to isolate transaction in main_method from rollback in method1. I attached more code. from sqlalchemy.orm import