summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 23:51:49 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 23:51:49 -0400
commita977894c84bf4351f460499a44c7c11439b8d14b (patch)
treea38abdf40814a67860638b7229c7826db9d6b9bf /lib/sqlalchemy/orm/interfaces.py
parentf10b94dfd89707fd7b69ddfa9ac849b0f092e55b (diff)
downloadsqlalchemy-a977894c84bf4351f460499a44c7c11439b8d14b.tar.gz
- fix some final pathing stuff, we weren't getting all the loads in the
inheritance examples, now its improved ! - final doc pass
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/interfaces.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py
index 255b6b6fe..7fbb0862d 100644
--- a/lib/sqlalchemy/orm/interfaces.py
+++ b/lib/sqlalchemy/orm/interfaces.py
@@ -932,8 +932,7 @@ class StrategizedOption(PropertyOption):
for an operation by a StrategizedProperty.
"""
- def is_chained(self):
- return False
+ is_chained = False
def process_query_property(self, query, paths, mappers):
# _get_context_strategy may receive the path in terms of
@@ -941,7 +940,7 @@ class StrategizedOption(PropertyOption):
# in the polymorphic tests leads to "(Person, 'machines')" in
# the path due to the mechanics of how the eager strategy builds
# up the path
- if self.is_chained():
+ if self.is_chained:
for path in paths:
query._attributes[("loaderstrategy", _reduce_path(path))] = \
self.get_strategy_class()