]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- An object that's been deleted now gets a flag
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Aug 2010 15:32:50 +0000 (11:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Aug 2010 15:32:50 +0000 (11:32 -0400)
commitaf9fd453c08aac4f4e45f6f6ba94da89b42afe54
treef556b497cf61e44a6a8582f060d106685aa52e81
parent506a0b103d7c4552679b711a4686a41a8842b10a
- An object that's been deleted now gets a flag
'deleted', which prohibits the object from
being re-add()ed to the session, as previously
the object would live in the identity map
silently until its attributes were accessed.
The make_transient() function now resets this
flag along with the "key" flag.

- make_transient() can be safely called on an
already transient instance.
CHANGES
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/state.py
test/orm/test_expire.py
test/orm/test_session.py