summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/sync.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-06-21 17:04:26 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-06-21 17:04:26 -0400
commit51a3a9ac8a76096a6a25eb2cc7404970561d5123 (patch)
tree5f0aa0b9221c5a13c145733c35d0daaf1ae630ab /lib/sqlalchemy/orm/sync.py
parentd5186e92534b4d38e590cef2d56c85be845bfdf0 (diff)
downloadsqlalchemy-51a3a9ac8a76096a6a25eb2cc7404970561d5123.tar.gz
- [removed] Deprecated identifiers removed:
* allow_null_pks mapper() argument (use allow_partial_pks) * _get_col_to_prop() mapper method (use get_property_by_column()) * dont_load argument to Session.merge() (use load=True) * sqlalchemy.orm.shard module (use sqlalchemy.ext.horizontal_shard)
Diffstat (limited to 'lib/sqlalchemy/orm/sync.py')
-rw-r--r--lib/sqlalchemy/orm/sync.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/sqlalchemy/orm/sync.py b/lib/sqlalchemy/orm/sync.py
index a20e871e4..c1eaab234 100644
--- a/lib/sqlalchemy/orm/sync.py
+++ b/lib/sqlalchemy/orm/sync.py
@@ -90,19 +90,19 @@ def source_modified(uowcommit, source, source_mapper, synchronize_pairs):
else:
return False
-def _raise_col_to_prop(isdest, source_mapper, source_column, dest_mapper, dest_column):
+def _raise_col_to_prop(isdest, source_mapper, source_column,
+ dest_mapper, dest_column):
if isdest:
- raise exc.UnmappedColumnError(
- "Can't execute sync rule for destination column '%s'; "
- "mapper '%s' does not map this column. Try using an explicit"
- " `foreign_keys` collection which does not include this column "
- "(or use a viewonly=True relation)." % (dest_column, dest_mapper)
- )
+ raise exc.UnmappedColumnError("Can't execute sync rule for "
+ "destination column '%s'; mapper '%s' does not map "
+ "this column. Try using an explicit `foreign_keys` "
+ "collection which does not include this column (or use "
+ "a viewonly=True relation)." % (dest_column,
+ dest_mapper))
else:
- raise exc.UnmappedColumnError(
- "Can't execute sync rule for source column '%s'; mapper '%s' "
- "does not map this column. Try using an explicit `foreign_keys`"
- " collection which does not include destination column '%s' (or "
- "use a viewonly=True relation)." %
- (source_column, source_mapper, dest_column)
- )
+ raise exc.UnmappedColumnError("Can't execute sync rule for "
+ "source column '%s'; mapper '%s' does not map this "
+ "column. Try using an explicit `foreign_keys` "
+ "collection which does not include destination column "
+ "'%s' (or use a viewonly=True relation)."
+ % (source_column, source_mapper, dest_column))