summaryrefslogtreecommitdiff
path: root/examples/adjacencytree/basic_tree.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2009-04-13 03:23:19 +0000
committerMichael Trier <mtrier@gmail.com>2009-04-13 03:23:19 +0000
commitb5ad47271e68a30b2acd8f990af331de8e1069f3 (patch)
tree3f5e960ae01b98bf4b013afc951f20415748cec1 /examples/adjacencytree/basic_tree.py
parenteba7328c46202af92de63d2b019bb2e4892255b7 (diff)
downloadsqlalchemy-b5ad47271e68a30b2acd8f990af331de8e1069f3.tar.gz
Cleaned up the deprecation problems with the examples.
Diffstat (limited to 'examples/adjacencytree/basic_tree.py')
-rw-r--r--examples/adjacencytree/basic_tree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/adjacencytree/basic_tree.py b/examples/adjacencytree/basic_tree.py
index ac149d68a..dec03e550 100644
--- a/examples/adjacencytree/basic_tree.py
+++ b/examples/adjacencytree/basic_tree.py
@@ -72,7 +72,7 @@ print "Flushing:"
print "----------------------------"
session = create_session()
-session.save(node)
+session.add(node)
session.flush()
print "\n\n\n----------------------------"
@@ -113,7 +113,7 @@ print "Clearing session, selecting "
print "tree new where node_id=%d:" % nodeid
print "----------------------------"
-session.clear()
+session.expunge_all()
t = session.query(TreeNode).filter(TreeNode.id==nodeid)[0]
print "\n\n\n----------------------------"