From b5ad47271e68a30b2acd8f990af331de8e1069f3 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Mon, 13 Apr 2009 03:23:19 +0000 Subject: Cleaned up the deprecation problems with the examples. --- examples/sharding/attribute_shard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/sharding') diff --git a/examples/sharding/attribute_shard.py b/examples/sharding/attribute_shard.py index 45a019f13..2f03a5a34 100644 --- a/examples/sharding/attribute_shard.py +++ b/examples/sharding/attribute_shard.py @@ -184,10 +184,10 @@ quito.reports.append(Report(85)) sess = create_session() for c in [tokyo, newyork, toronto, london, dublin, brasilia, quito]: - sess.save(c) + sess.add(c) sess.flush() -sess.clear() +sess.expunge_all() t = sess.query(WeatherLocation).get(tokyo.id) assert t.city == tokyo.city -- cgit v1.2.1