]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] Improvements to event listening for
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Oct 2012 21:21:08 +0000 (17:21 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Oct 2012 21:21:08 +0000 (17:21 -0400)
commitc30e6d063e6dcec7d6f8ab28692049aaf387a5fa
tree865e54515ddcfea9a554d2c458379d85d9599138
parent40af03f8879412051518df8aadd8886c6c33aac0
  - [feature] Improvements to event listening for
    mapped classes allows that unmapped classes
    can be specified for instance- and mapper-events.
    The established events will be automatically
    set up on subclasses of that class when the
    propagate=True flag is passed, and the
    events will be set up for that class itself
    if and when it is ultimately mapped.
    [ticket:2585]

  - [bug] The instrumentation events class_instrument(),
    class_uninstrument(), and attribute_instrument()
    will now fire off only for descendant classes
    of the class assigned to listen().  Previously,
    an event listener would be assigned to listen
    for all classes in all cases regardless of the
    "target" argument passed.  [ticket:2590]
CHANGES
lib/sqlalchemy/event.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/orm/instrumentation.py
lib/sqlalchemy/orm/mapper.py
test/orm/test_events.py