[sqlalchemy] Re: Action on object deletion

2007-01-17 Thread Michael Bayer
yeah im trying to keep SA as simple as possible, and whatever hooks and extensions I put in are because they are absolutely needed (like the various MapperExtension hooks are allowing you to put code in the middle of existing processes, i.e. template methods). for extending Session, current patt

[sqlalchemy] Re: Action on object deletion

2007-01-17 Thread Aldo Cortesi
Thus spake Michael Bayer ([EMAIL PROTECTED]): when you mark an item as "deleted" in the session, no SQL is issued nor does any transaction occur (if you havent started one already). it would not be the appropriate point in time to do "accounting" operations, since those operations are not part

[sqlalchemy] Re: Action on object deletion

2007-01-16 Thread Michael Bayer
when you mark an item as "deleted" in the session, no SQL is issued nor does any transaction occur (if you havent started one already). it would not be the appropriate point in time to do "accounting" operations, since those operations are not part of any transaction - if you lose your session,