Re: [sqlalchemy] Re: safe usage within before_update/before_insert events

2012-09-12 Thread Michael Bayer
On Sep 12, 2012, at 2:33 PM, Kent wrote: Posted before I was done, sorry... Is it safe to do all these things from Mapper event after_update? relationships that are being persisted in that flush are not necessarily done being persisted, so loading a relationship is not a great idea in

Re: [sqlalchemy] Re: safe usage within before_update/before_insert events

2012-09-12 Thread Michael Bayer
On Sep 12, 2012, at 5:12 PM, Kent wrote: I should step back and present my current issue: When updates to instances of a certain class (table) are to be issued, there are sometimes other related updates that need to be made also. But I need to be able to flush() these changes in between