summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-11 20:26:34 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-11 20:26:34 +0000
commit7fedc9298ace22df69d030c4d97169528f09f662 (patch)
treeb06e401ee36cab06a418d3510034b9ae7ad6d1f7 /examples
parent513b350ccc48009aa32f5c275f3f6aacde8b8462 (diff)
downloadsqlalchemy-7fedc9298ace22df69d030c4d97169528f09f662.tar.gz
have paths represented as their actual mapper, not the base mapper, allowing
more information for custom mapper opts to see what's going on. add a new _reduce_path() function to apply to the path as stored in dictionaries, adds a slight cost overhead.
Diffstat (limited to 'examples')
-rw-r--r--examples/beaker_caching/meta.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/beaker_caching/meta.py b/examples/beaker_caching/meta.py
index 4103baa32..25fa1d4cf 100644
--- a/examples/beaker_caching/meta.py
+++ b/examples/beaker_caching/meta.py
@@ -170,7 +170,7 @@ class FromCache(MapperOption):
"""
if self.cls_ is not None and query._current_path:
mapper, key = query._current_path[-2:]
- if issubclass(self.cls_, mapper.class_) and key == self.propname:
+ if self.cls_ is mapper.class_ and key == self.propname:
self._set_query_cache(query)
def process_query(self, query):