summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-10-12 17:28:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-10-12 17:28:25 -0400
commitc1394c2ebf449f12506f4ee32810d6d3bbdcea0d (patch)
treef568facdda2670e7a934e49da5cdcde4adbf9d8f /lib/sqlalchemy
parentc30e6d063e6dcec7d6f8ab28692049aaf387a5fa (diff)
downloadsqlalchemy-c1394c2ebf449f12506f4ee32810d6d3bbdcea0d.tar.gz
- lets default propagate to True here since it was essentially always
propagated previously
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/events.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/events.py b/lib/sqlalchemy/orm/events.py
index 174652a15..a36377681 100644
--- a/lib/sqlalchemy/orm/events.py
+++ b/lib/sqlalchemy/orm/events.py
@@ -27,6 +27,12 @@ class InstrumentationEvents(event.Events):
which when used has the effect of events being emitted
for all classes.
+ Note the "propagate" flag here is defaulted to ``True``,
+ unlike the other class level events where it defaults
+ to ``False``. This means that new subclasses will also
+ be the subject of these events, when a listener
+ is established on a superclass.
+
.. versionchanged:: 0.8 - events here will emit based
on comparing the incoming class to the type of class
passed to :func:`.event.listen`. Previously, the
@@ -45,7 +51,7 @@ class InstrumentationEvents(event.Events):
return None
@classmethod
- def _listen(cls, target, identifier, fn, propagate=False):
+ def _listen(cls, target, identifier, fn, propagate=True):
def listen(target_cls, *arg):
listen_cls = target()