diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-09-05 17:16:26 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-09-05 17:16:26 +0000 |
| commit | 9a5247818904185d3f1e3f4bfbc66cc614a941c6 (patch) | |
| tree | c73a99b25d994bb710b0981e7971461cc3fb4b07 /lib | |
| parent | 20f15720da7b9f6baca01d8bfef359263b671824 (diff) | |
| download | sqlalchemy-9a5247818904185d3f1e3f4bfbc66cc614a941c6.tar.gz | |
- added basic 'zblog' test suite
- better error message for mapper orphan detect
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/mapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index fe0525b4a..4197401f7 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -145,7 +145,7 @@ class Mapper(object): for (key,klass) in self.delete_orphans: if not getattr(klass, key).hasparent(obj, optimistic=optimistic): if not has_identity(obj): - raise exceptions.FlushError("instance %s is an unsaved, pending instance and is an orphan" % obj) + raise exceptions.FlushError("instance %s is an unsaved, pending instance and is an orphan (is not attached to any parent '%s' instance via that classes' '%s' attribute)" % (obj, klass.__name__, key)) return True else: return False |
