diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-14 11:51:11 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-14 11:51:11 -0400 |
| commit | 3eaedb38d306095c683900e7e4625be7f7bc91d2 (patch) | |
| tree | 1bb7f5ed594ff7c199761bc6ad8e87248c6070cc /lib/sqlalchemy/orm/state.py | |
| parent | 0dde519fe172cf3ac7241cbb1ab93b35beaf6d6a (diff) | |
| download | sqlalchemy-3eaedb38d306095c683900e7e4625be7f7bc91d2.tar.gz | |
- move load_scalar_attributes out to loading.py
Diffstat (limited to 'lib/sqlalchemy/orm/state.py')
| -rw-r--r-- | lib/sqlalchemy/orm/state.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/state.py b/lib/sqlalchemy/orm/state.py index 557eeb133..ea0e89caf 100644 --- a/lib/sqlalchemy/orm/state.py +++ b/lib/sqlalchemy/orm/state.py @@ -13,7 +13,7 @@ defines a large part of the ORM's interactivity. import weakref from .. import util -from . import exc as orm_exc, attributes,util as orm_util +from . import exc as orm_exc, attributes, util as orm_util from .attributes import ( PASSIVE_NO_RESULT, SQL_OK, NEVER_SET, ATTR_WAS_SET, NO_VALUE,\ @@ -198,8 +198,10 @@ class InstanceState(object): if manager is None: raise orm_exc.UnmappedInstanceError( inst, - "Cannot deserialize object of type %r - no mapper() has" - " been configured for this class within the current Python process!" % + "Cannot deserialize object of type %r - " + "no mapper() has " + "been configured for this class within the current " + "Python process!" % self.class_) elif manager.is_mapped and not manager.mapper.configured: mapperlib.configure_mappers() |
