]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- simplified _mapper_registry further. its now just a weakkeydict of mapper->True...
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Dec 2007 23:11:13 +0000 (23:11 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Dec 2007 23:11:13 +0000 (23:11 +0000)
commit6c4ad36cc9004db1d9dffe28a95e3556d14e2c82
tree9ef9b12c21fbcd0963da1332ac001d208f6a6f07
parentd73d0f420cc6beeb06f6f7e971f7b64b0a4adca0
- simplified _mapper_registry further.  its now just a weakkeydict of mapper->True, stores
all mappers including non primaries, and is strictly used for the list of "to compile/dispose".
- all global references are now weak referencing.  if you del a mapped class and any dependent classes,
its mapper and all dependencies fall out of scope.
- attributes.py still had issues which were barely covered by tests.  added way more tests (coverage.py still says 71%, doh)
fixed things, took out unnecessary commit to states.  attribute history is also asserted for ordering.
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/util.py
test/orm/attributes.py
test/orm/mapper.py
test/orm/memusage.py
test/orm/naturalpks.py