]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- declarative_base() takes optional kwarg "mapper", which
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 29 Mar 2008 14:41:41 +0000 (14:41 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 29 Mar 2008 14:41:41 +0000 (14:41 +0000)
commit99ed3922678ac050888dad7ca1c2a2195d65e2c0
treef2ce3103168be46e1563dd1a865c229e09ff8d3a
parentc4955c05a3ab40d53c83982da612e746c662640d
- declarative_base() takes optional kwarg "mapper", which
is any callable/class/method that produces a mapper,
such as declarative_base(mapper=scopedsession.mapper).
This property can also be set on individual declarative
classes using the "__mapper_cls__" property.
CHANGES
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/util.py
test/ext/declarative.py