summaryrefslogtreecommitdiff
path: root/examples/adjacencytree/basic_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/adjacencytree/basic_tree.py')
-rw-r--r--examples/adjacencytree/basic_tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/adjacencytree/basic_tree.py b/examples/adjacencytree/basic_tree.py
index 39c5c24e4..0f1ff9b23 100644
--- a/examples/adjacencytree/basic_tree.py
+++ b/examples/adjacencytree/basic_tree.py
@@ -46,7 +46,7 @@ class TreeNode(object):
# define the mapper. we will make "convenient" property
# names vs. the more verbose names in the table definition
-TreeNode.mapper=assignmapper(tables.trees, class_=TreeNode, properties=dict(
+assign_mapper(TreeNode, tables.trees, properties=dict(
id=tables.trees.c.node_id,
name=tables.trees.c.node_name,
parent_id=tables.trees.c.parent_node_id,