Commits

Mike Bayer committed 33cdd4c

- Removed erroneous 'self' reference when raising
UnmappedColumnError during flush() operation.

  • Participants
  • Parent commits 525981a
  • Branches rel_0_4

Comments (0)

Files changed (2)

       flag is always True with a "transactional" 
       (in 0.5 a non-"autocommit") Session.
 
+    - Removed erroneous 'self' reference when raising
+      UnmappedColumnError during flush() operation.
+
 - schema
     - create_all(), drop_all(), create(), drop() all raise
       an error if the table name or schema name contains

File lib/sqlalchemy/orm/sync.py

         try:
             dest_mapper._set_state_attr_by_column(dest, r, value)
         except exceptions.UnmappedColumnError:
-            self._raise_col_to_prop(True, source_mapper, l, dest_mapper, r)
+            _raise_col_to_prop(True, source_mapper, l, dest_mapper, r)
 
 def clear(dest, dest_mapper, synchronize_pairs):
     for l, r in synchronize_pairs:
             oldvalue = source_mapper._get_committed_attr_by_column(source.obj(), l)
             value = source_mapper._get_state_attr_by_column(source, l)
         except exceptions.UnmappedColumnError:
-            self._raise_col_to_prop(False, source_mapper, l, None, r)
+            _raise_col_to_prop(False, source_mapper, l, None, r)
         dest[r.key] = value
         dest[old_prefix + r.key] = oldvalue