]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- New event hook, MapperEvents.after_configured().
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Sep 2011 20:54:23 +0000 (16:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Sep 2011 20:54:23 +0000 (16:54 -0400)
commitbb62d80217e584acf3f899804bb66b19f71205e2
tree72fb88a12bcf660be5408f5acd64518eb3381dbf
parente61a4438493c812990382ec5f1fc46016b319a4c
  - New event hook, MapperEvents.after_configured().
    Called after a configure() step has completed and
    mappers were in fact affected.   Theoretically this
    event is called once per application, unless new mappings
    are constructed after existing ones have been used
    already.

  - New declarative features:
        - __declare_last__() method, establishes an event
        listener for the class method that will be called
        when mappers are completed with the final "configure"
        step.
        - __abstract__ flag.   The class will not be mapped
        at all when this flag is present on the class.
        - New helper classes ConcreteBase, AbstractConcreteBase.
        Allow concrete mappings using declarative which automatically
        set up the "polymorphic_union" when the "configure"
        mapper step is invoked.
        - The mapper itself has semi-private methods that allow
        the "with_polymorphic" selectable to be assigned
        to the mapper after it has already been configured.
        [ticket:2239]
CHANGES
doc/build/orm/extensions/declarative.rst
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/util.py
test/ext/test_declarative.py