summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-06-21 18:08:34 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-06-21 18:08:34 +0000
commitbe2d349ade99ff83580f4197f3afa823f6be3b3a (patch)
treea0e6edbc62f9aa3440cc08de5abe525658f71532 /lib/sqlalchemy
parentc5e2d673a996a09e8cd399ebdde855773745b865 (diff)
downloadsqlalchemy-be2d349ade99ff83580f4197f3afa823f6be3b3a.tar.gz
- fixed some concrete inheritance ramifications regarding r4866
- added explicit test coverage for r4866 with joined table inheritance
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/mapper.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 99e93df5d..172b99558 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -368,7 +368,7 @@ class Mapper(object):
for mapper in list(_mapper_registry):
if not mapper.compiled:
mapper.__initialize_properties()
-
+
_new_mappers = False
return self
finally:
@@ -526,10 +526,10 @@ class Mapper(object):
# mark these as "read only" properties which are refreshed upon
# INSERT/UPDATE
self._readonly_props = util.Set([
- self._columntoproperty[col] for col in all_cols if
+ self._columntoproperty[col] for col in self._columntoproperty if
not hasattr(col, 'table') or col.table not in self._cols_by_table
])
-
+
# if explicit PK argument sent, add those columns to the primary key mappings
if self.primary_key_argument:
for k in self.primary_key_argument:
@@ -1190,7 +1190,7 @@ class Mapper(object):
# expire readonly attributes
readonly = state.unmodified.intersection([
- p.key for p in chain(*[m._readonly_props for m in mapper.iterate_to_root()])
+ p.key for p in mapper._readonly_props
])
if readonly: