]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- further changes to attributes with regards to "trackparent". the "commit" operation
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Sep 2006 04:00:44 +0000 (04:00 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Sep 2006 04:00:44 +0000 (04:00 +0000)
commitfe0a1aa7facc7ee20346b258b37697ab6867d016
tree9470ee25b169a15d8f979dde8ad280872cdb1d9a
parent35e2f6680b17dcf0f65b4e392d2504bfe8000efb
- further changes to attributes with regards to "trackparent".  the "commit" operation
now sets a "hasparent" flag for all attributes to all objects.  that way lazy loads
via callables get included in trackparent, and eager loads do as well because the mapper
calls commit() on all objects at load time.  this is a less shaky method than the "optimistic"
thing in the previous commit, but uses more memory and involves more overhead.
- some tweaks/cleanup to unit tests
CHANGES
lib/sqlalchemy/attributes.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
test/base/attributes.py
test/orm/mapper.py
test/orm/objectstore.py
test/orm/session.py