From: Mike Bayer Date: Wed, 27 Jun 2007 23:12:08 +0000 (+0000) Subject: fix to "populate_existing" X-Git-Tag: rel_0_3_9~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb67e363dd6debbe065248c07bc968e96eb4c58;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix to "populate_existing" --- 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