From d46985d699e6ebffe45c94d91cfa842271e06bb0 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 2 Oct 2010 13:31:07 -0400 Subject: - add instrumentation events - simplify listen_for_events example with new system - add "propagate", "retval", "raw" flags to attribute events. this solves the "return value" issue as well as the "subclass" issue. - begin thinking about event removal. Each listen() method will have a corresponding remove(). Custom listen() methods will have to package all the info onto the event function that is needed to remove its state. --- lib/sqlalchemy/orm/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/orm/util.py') diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index f79a8449f..8ec161e99 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -341,7 +341,7 @@ class AliasedClass(object): existing = getattr(self.__target, prop.key) comparator = existing.comparator.adapted(self.__adapt_element) - queryattr = attributes.QueryableAttribute(prop.key, + queryattr = attributes.QueryableAttribute(self, prop.key, impl=existing.impl, parententity=self, comparator=comparator) setattr(self, prop.key, queryattr) return queryattr -- cgit v1.2.1