diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-11-03 01:17:28 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-11-03 01:17:28 +0000 |
| commit | 695f65db853a7b74a1ce2da75d8e3c55bbafae81 (patch) | |
| tree | dd66a8f126fa1c44cfb7349c319168ab6c3b0a0f /examples/polymorph/polymorph.py | |
| parent | 14845494113b5327b2ed7f8ed13aed9bc9ce27b2 (diff) | |
| download | sqlalchemy-695f65db853a7b74a1ce2da75d8e3c55bbafae81.tar.gz | |
- added an assertion within the "cascade" step of ORM relationships to check
that the class of object attached to a parent object is appropriate
(i.e. if A.items stores B objects, raise an error if a C is appended to A.items)
- new extension sqlalchemy.ext.associationproxy, provides transparent "association object"
mappings. new example examples/association/proxied_association.py illustrates.
- some example cleanup
Diffstat (limited to 'examples/polymorph/polymorph.py')
| -rw-r--r-- | examples/polymorph/polymorph.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/polymorph/polymorph.py b/examples/polymorph/polymorph.py index 92554e087..6c4f0aae6 100644 --- a/examples/polymorph/polymorph.py +++ b/examples/polymorph/polymorph.py @@ -1,5 +1,5 @@ from sqlalchemy import * -import sys, sets +import sets # this example illustrates a polymorphic load of two classes, where each class has a very # different set of properties @@ -83,7 +83,6 @@ session.save(c) print session.new session.flush() -#sys.exit() session.clear() c = session.query(Company).get(1) |
