db().select().as_trees()
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.7.4-stable+timestamp.2013.10.20.22.50.07
|
Version 2.7.4-stable+timestamp.2013.10.20.22.54.26
|
||||||
|
|||||||
+1
-1
@@ -10652,7 +10652,7 @@ class Rows(object):
|
|||||||
return dict([(key(r),r) for r in rows])
|
return dict([(key(r),r) for r in rows])
|
||||||
|
|
||||||
|
|
||||||
def as_tree(self, parent_name='parent_id', children_name='children'):
|
def as_trees(self, parent_name='parent_id', children_name='children'):
|
||||||
roots = []
|
roots = []
|
||||||
drows = {}
|
drows = {}
|
||||||
for row in self:
|
for row in self:
|
||||||
|
|||||||
Reference in New Issue
Block a user