]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement support for __prepare__ declarative method. this signals that
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 May 2012 15:57:30 +0000 (17:57 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 May 2012 15:57:30 +0000 (17:57 +0200)
commit5e07ebf4ea200483eb2acd4eb35176a2d29e7a24
tree4fe811a7b8f45cae093c4cdb5dbb8098b5554bcb
parent2bfa43a4aece08cecf8663f4f282d6187b4ec6f1
implement support for __prepare__ declarative method.  this signals that
the mapping should not be constructed immediately; instead, the info for
the mapping is placed into an interm object _MapperThingy which serves
as the mapper for the purposes of figuring out inheritance, etc.  Later,
the prepare_deferred_mapping() function can be called given a base which
will invoke __prepare__ for each mapped class.
lib/sqlalchemy/ext/declarative.py