Re: [sqlalchemy] Using sessions in a GUI application

2017-01-21 Thread Philip Scott
> > > It's possible that if you're using the session in "autocommit" mode and > just want to occasionally "broadcast" your object state to a quick > "flush everything", that in fact turning off the "accounting" feature > with this flag is appropriate. I'm looking at this code and it really

Re: [sqlalchemy] Using sessions in a GUI application

2017-01-20 Thread mike bayer
On 01/20/2017 04:25 PM, Philip Scott wrote: Hi Mike Thank you for your quick and thoughtful response as usual! so the quick and dirty approach is a flag I'm not enthused about, nevertheless I don't plan on removing, called _enable_transaction_accounting, Yes I saw this when

Re: [sqlalchemy] Using sessions in a GUI application

2017-01-20 Thread Philip Scott
Hi Mike Thank you for your quick and thoughtful response as usual! > so the quick and dirty approach is a flag I'm not enthused about, > nevertheless I don't plan on removing, called > _enable_transaction_accounting, > Yes I saw this when poking around in the source code - it does seem like

Re: [sqlalchemy] Using sessions in a GUI application

2017-01-20 Thread mike bayer
On 01/20/2017 01:45 PM, Philip Scott wrote: Hello all, Short summary of my question: Is it possible to stop rollback() from expiring dirty objects? Specifically, in the case where there are - local changes made outside to mapped objects outside of a transaction - flush() is called - the

[sqlalchemy] Using sessions in a GUI application

2017-01-20 Thread Philip Scott
Hello all, Short summary of my question: Is it possible to stop rollback() from expiring dirty objects? Specifically, in the case where there are - local changes made outside to mapped objects outside of a transaction - flush() is called - the flush fails In this case SQLAlchemy will