From 695f65db853a7b74a1ce2da75d8e3c55bbafae81 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 3 Nov 2006 01:17:28 +0000 Subject: - 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 --- examples/polymorph/polymorph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/polymorph/polymorph.py') 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) -- cgit v1.2.1