summaryrefslogtreecommitdiff
path: root/examples/adjacencytree/byroot_tree.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-01-02 05:45:37 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-01-02 05:45:37 +0000
commitb769988c9c6f34b2c704f5b90707d538b747fe18 (patch)
treee82bc3544ce352050d35b82a90420c9278562b2b /examples/adjacencytree/byroot_tree.py
parentd1f05cbaa369d74c75a9eb3eb74e8718bc30f137 (diff)
downloadsqlalchemy-b769988c9c6f34b2c704f5b90707d538b747fe18.tar.gz
column.label is now a function; fix byroot example, add 'default_label' accessor to columnimpl
Diffstat (limited to 'examples/adjacencytree/byroot_tree.py')
-rw-r--r--examples/adjacencytree/byroot_tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/adjacencytree/byroot_tree.py b/examples/adjacencytree/byroot_tree.py
index 58b16e4c1..80768bd5c 100644
--- a/examples/adjacencytree/byroot_tree.py
+++ b/examples/adjacencytree/byroot_tree.py
@@ -68,7 +68,7 @@ class TreeLoader(MapperExtension):
def create_instance(self, mapper, row, imap, class_):
"""creates an instance of a TreeNode. since the TreeNode constructor requires
the 'name' argument, this method pulls the data from the database row directly."""
- return TreeNode(row[mapper.c.name.label], _mapper_nohistory=True)
+ return TreeNode(row[mapper.c.name], _mapper_nohistory=True)
def after_insert(self, mapper, instance):
"""runs after the insert of a new TreeNode row. The primary key of the row is not determined
until the insert is complete, since most DB's use autoincrementing columns. If this node is