[sqlalchemy] Re: before_insert in mapper extension

2007-03-29 Thread Michael Bayer
theyre tracked as changed but the unit of work has already figured out the full list of elements it wants to save (remember that it has alraedy built up the full order of operations using a dependency sort). if you want to affect the list of elements to be saved you might want to do that

[sqlalchemy] Re: before_insert in mapper extension

2007-03-29 Thread Michael Bayer
On Mar 29, 2007, at 5:43 PM, Rick Morrison wrote: Thanks. Does that full list of elements include individual instance attributes or just instances? we're talking about session.dirty and stuff like that, its instances. What happens if the before_update of an instance, the handler