summaryrefslogtreecommitdiff
path: root/examples/elementtree/optimized_al.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 19:19:03 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 19:19:03 -0400
commitc6bceb77754bd72c462ce146f706758d1ad3da4a (patch)
tree0b9c935221c572bd75f3c88fe849fb17595e0a79 /examples/elementtree/optimized_al.py
parent1675811029553501bb23084604c64d974dfe739c (diff)
downloadsqlalchemy-c6bceb77754bd72c462ce146f706758d1ad3da4a.tar.gz
- converted all lazy=True|False|None to 'select'|'joined'|'noload'
- converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
Diffstat (limited to 'examples/elementtree/optimized_al.py')
-rw-r--r--examples/elementtree/optimized_al.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/elementtree/optimized_al.py b/examples/elementtree/optimized_al.py
index 9cd2acc30..98c4e1129 100644
--- a/examples/elementtree/optimized_al.py
+++ b/examples/elementtree/optimized_al.py
@@ -80,7 +80,7 @@ class _Attribute(object):
# they will be ordered in primary key/insert order, so that we can reconstruct
# an ElementTree structure from the list.
mapper(Document, documents, properties={
- '_nodes':relationship(_Node, lazy=False, cascade="all, delete-orphan")
+ '_nodes':relationship(_Node, lazy='joined', cascade="all, delete-orphan")
})
# the _Node objects change the way they load so that a list of _Nodes will organize
@@ -89,7 +89,7 @@ mapper(Document, documents, properties={
# ordering to rows which will suffice.
mapper(_Node, elements, properties={
'children':relationship(_Node, lazy=None), # doesnt load; used only for the save relationship
- 'attributes':relationship(_Attribute, lazy=False, cascade="all, delete-orphan"), # eagerly load attributes
+ 'attributes':relationship(_Attribute, lazy='joined', cascade="all, delete-orphan"), # eagerly load attributes
})
mapper(_Attribute, attributes)