I am using SQLAlchemy 0.7. I would like some “post-processing” to appear after " session.flush() ", namely, I need to access the instances participating in flush() and pass them through. A call to flush () will update the database, but the instances also contain some data in the LDAP database, so I would like SQLAlchemy to initiate the update of this LDAP database by calling the instance method.
I decided that I would use the after_flush(session, flush_context) event after_flush(session, flush_context) , in detail here , but how can I get a list of update()'d instances
On the side of the note, how can I determine which columns have been changed (or "dirty") in an instance. I was able to find out if the specimen as a whole is dirty, but not individual properties.
source share