summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-10-02 13:31:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-10-02 13:31:07 -0400
commitd46985d699e6ebffe45c94d91cfa842271e06bb0 (patch)
treeb04fbb7dcc96afc2c0c3973e77e53ef2cbcc7643 /lib/sqlalchemy/orm/util.py
parent25c08f6def19e1034a887e972ad286ef122473d0 (diff)
downloadsqlalchemy-d46985d699e6ebffe45c94d91cfa842271e06bb0.tar.gz
- 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.
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
-rw-r--r--lib/sqlalchemy/orm/util.py2
1 files changed, 1 insertions, 1 deletions
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