[sqlalchemy] Modified instances from flushed session

2015-06-24 Thread Mattias Lagergren
Hi guys, I'm trying to retrieve modified (new, deleted and dirty) instances from the session, before commit but after a flush. Example: # Update and create objects. ... # This is fine and I have my dirty instances: print session.dirty, session.new, session.deleted session.flush() # At

Re: [sqlalchemy] Modified instances from flushed session

2015-06-24 Thread Mike Bayer
On 6/24/15 10:03 AM, Mattias Lagergren wrote: Hi guys, I'm trying to retrieve modified (new, deleted and dirty) instances from the session, before commit but after a flush. Example: | # Update and create objects. ... |# This is fine and I have my dirty instances: