summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/deprecated_interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-11-06 17:34:54 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-11-06 17:34:54 -0400
commit1f2423d23cc3e8bf8db60b56436752fbd3d83f9d (patch)
tree85f5ea39fffcd489ae39006092e3dd3c924e2e6b /lib/sqlalchemy/orm/deprecated_interfaces.py
parent1de6d22ace3a2d5a8ff23b2417f502cf2f4326fc (diff)
downloadsqlalchemy-1f2423d23cc3e8bf8db60b56436752fbd3d83f9d.tar.gz
- attempting system of propagation. getting stuck on attempting to use instance methods as listeners.
Diffstat (limited to 'lib/sqlalchemy/orm/deprecated_interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/deprecated_interfaces.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/orm/deprecated_interfaces.py b/lib/sqlalchemy/orm/deprecated_interfaces.py
index 3817dc2ee..76e023701 100644
--- a/lib/sqlalchemy/orm/deprecated_interfaces.py
+++ b/lib/sqlalchemy/orm/deprecated_interfaces.py
@@ -71,7 +71,7 @@ class MapperExtension(object):
ls_meth(self, instance)
return reconstruct
event.listen(go(ls_meth), 'on_load',
- self.class_manager, raw=False)
+ self.class_manager, raw=False, propagate=True)
elif meth == 'init_instance':
def go(ls_meth):
def init_instance(instance, args, kwargs):
@@ -80,7 +80,7 @@ class MapperExtension(object):
instance, args, kwargs)
return init_instance
event.listen(go(ls_meth), 'on_init',
- self.class_manager, raw=False)
+ self.class_manager, raw=False, propagate=True)
elif meth == 'init_failed':
def go(ls_meth):
def init_failed(instance, args, kwargs):
@@ -90,10 +90,10 @@ class MapperExtension(object):
return init_failed
event.listen(go(ls_meth), 'on_init_failure',
- self.class_manager, raw=False)
+ self.class_manager, raw=False, propagate=True)
else:
event.listen(ls_meth, "on_%s" % meth, self,
- raw=False, retval=True)
+ raw=False, retval=True, propagate=True)
def instrument_class(self, mapper, class_):