]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- mapper compilation has been reorganized such that most compilation
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Sep 2007 19:55:33 +0000 (19:55 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Sep 2007 19:55:33 +0000 (19:55 +0000)
commite92d5cff7ed2a26b119ddae8fdef856c4274c297
tree088d530ee757c2ba75d40a57b74d8b69e0d20acf
parent9c76fa6cb5f07785e827377daa689612b975656f
- mapper compilation has been reorganized such that most compilation
  occurs upon mapper construction.  this allows us to have fewer
  calls to mapper.compile() and also to allow class-based properties
  to force a compilation (i.e. User.addresses == 7 will compile all
  mappers; this is [ticket:758]).  The only caveat here is that
  an inheriting mapper now looks for its inherited mapper upon construction;
  so mappers within inheritance relationships need to be constructed in
  inheritance order (which should be the normal case anyway).
14 files changed:
CHANGES
VERSION
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/topological.py
lib/sqlalchemy/util.py
test/orm/inheritance/basic.py
test/orm/inheritance/polymorph.py
test/orm/inheritance/polymorph2.py
test/orm/inheritance/productspec.py
test/orm/mapper.py
test/orm/unitofwork.py