[sqlalchemy] Re: Find out which objects were deleted

2007-04-15 Thread Michael Bayer
session has a deleted accessor with all items marked as deleted. (its cleared out on flush()). On Apr 15, 2007, at 11:20 AM, Koen Bok wrote: Is there a nice way to find out if an object has been deleted? Ofcourse I could set a deleted = False on every mapped object and subclass

[sqlalchemy] Re: Find out which objects were deleted

2007-04-15 Thread Koen Bok
Yep, and I want to know them after the flush :-) On Apr 15, 7:11 pm, Michael Bayer [EMAIL PROTECTED] wrote: session has a deleted accessor with all items marked as deleted. (its cleared out on flush()). On Apr 15, 2007, at 11:20 AM, Koen Bok wrote: Is there a nice way to find out if

[sqlalchemy] Re: Find out which objects were deleted

2007-04-15 Thread Michael Bayer
youll have to track that deleted list before the flush and copy its contents somewhere. On Apr 15, 2007, at 7:39 PM, Koen Bok wrote: Yep, and I want to know them after the flush :-) On Apr 15, 7:11 pm, Michael Bayer [EMAIL PROTECTED] wrote: session has a deleted accessor with all items