From 7bb67e363dd6debbe065248c07bc968e96eb4c58 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 27 Jun 2007 23:12:08 +0000 Subject: [PATCH] fix to "populate_existing" --- examples/adjacencytree/byroot_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/adjacencytree/byroot_tree.py b/examples/adjacencytree/byroot_tree.py index ccd2646a4b..5c5584d967 100644 --- a/examples/adjacencytree/byroot_tree.py +++ b/examples/adjacencytree/byroot_tree.py @@ -99,7 +99,7 @@ class TreeLoader(MapperExtension): if instance.parent_id is None: result.append(instance) else: - if isnew or populate_existing: + if isnew or context.populate_existing: parentnode = selectcontext.identity_map[mapper.identity_key(instance.parent_id)] parentnode.children.append_without_event(instance) # fire off lazy loader before the instance is part of the session -- 2.47.2