Re: [sqlalchemy] before_flush events - how can i find out which objects have been updated?

2011-08-03 Thread Michael Bayer
On Aug 3, 2011, at 9:58 AM, Damian Dimmich wrote: > Hi All, > > I've been experimenting with the new event system in 7.1, and I'd like > to use it to set some values in my tables on each insert/update. > Basically, I've created a mixin class (BaseMixin) which adds two fields > to each model tha

[sqlalchemy] before_flush events - how can i find out which objects have been updated?

2011-08-03 Thread Damian Dimmich
Hi All, I've been experimenting with the new event system in 7.1, and I'd like to use it to set some values in my tables on each insert/update. Basically, I've created a mixin class (BaseMixin) which adds two fields to each model that inherits the mixin - a user_id and a last updated field which