From c6bceb77754bd72c462ce146f706758d1ad3da4a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 24 Mar 2010 19:19:03 -0400 Subject: - converted all lazy=True|False|None to 'select'|'joined'|'noload' - converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache --- test/orm/inheritance/test_basic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/orm/inheritance/test_basic.py') diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py index 904660e77..2f9295e17 100644 --- a/test/orm/inheritance/test_basic.py +++ b/test/orm/inheritance/test_basic.py @@ -383,8 +383,8 @@ class EagerLazyTest(_base.MappedTest): foos = mapper(Foo, foo) bars = mapper(Bar, bar, inherits=foos) - bars.add_property('lazy', relationship(foos, bar_foo, lazy=True)) - bars.add_property('eager', relationship(foos, bar_foo, lazy=False)) + bars.add_property('lazy', relationship(foos, bar_foo, lazy='select')) + bars.add_property('eager', relationship(foos, bar_foo, lazy='joined')) foo.insert().execute(data='foo1') bar.insert().execute(id=1, data='bar1') @@ -492,7 +492,7 @@ class FlushTest(_base.MappedTest): class Admin(User):pass role_mapper = mapper(Role, roles) user_mapper = mapper(User, users, properties = { - 'roles' : relationship(Role, secondary=user_roles, lazy=False) + 'roles' : relationship(Role, secondary=user_roles, lazy='joined') } ) admin_mapper = mapper(Admin, admins, inherits=user_mapper) @@ -528,7 +528,7 @@ class FlushTest(_base.MappedTest): role_mapper = mapper(Role, roles) user_mapper = mapper(User, users, properties = { - 'roles' : relationship(Role, secondary=user_roles, lazy=False) + 'roles' : relationship(Role, secondary=user_roles, lazy='joined') } ) -- cgit v1.2.1