Mike Bayer committed a5f964d

fix adjacency list examples

Comments (0)

Files changed (2)


 print "----------------------------"
-t = session.query(TreeNode).filter([0]
+t = session.query(TreeNode).filter([0]
 print "\n\n\n----------------------------"
 print "Full Tree:"


         if instance.root is instance:
-      , values=dict(
+      , values=dict(
             instance.root_id =
     def append_result(self, mapper, selectcontext, row, instance, result, **flags):
 # sub-tree in one pass.  the MapperExtension will assemble the incoming
 # nodes into a tree structure.
 t = (session.query(TreeNode).
-       filter(TreeNode.c.root_id==nodeid).
-       order_by([]))[0]
+       filter(TreeNode.root_id==nodeid).
+       order_by([]))[0]
 print "\n\n\n----------------------------"
 print "Full Tree:"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.