]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The before_flush() hook on SessionExtension takes place
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 17 Aug 2008 22:21:23 +0000 (22:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 17 Aug 2008 22:21:23 +0000 (22:21 +0000)
commit1b65c7eed5166d07cc145063f828beeb1d14cf02
treed652c4eb072a32bd4879ac362dbbb3ce55898492
parent9b6a9b7aeab79ba28737f394fa6cfaaf1f1f1bcf
- The before_flush() hook on SessionExtension takes place
before the list of new/dirty/deleted is calculated for the
final time, allowing routines within before_flush() to
further change the state of the Session before the flush
proceeds.   [ticket:1128]

- Reentrant calls to flush() raise an error.  This also
serves as a rudimentary, but not foolproof, check against
concurrent calls to Session.flush().
CHANGES
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
test/orm/session.py