[svn r1606] Problem with zero bookmarks. Still some problem on keywords count.
--- a/lib/folders.py Fri Oct 24 17:24:19 2003 -0400
+++ b/lib/folders.py Fri Oct 24 17:51:57 2003 -0400
@@ -53,6 +53,7 @@
keywords.append(keyword)
for child in children:
child['count'] = len(db.select_bookmarks(selection + [child['keyword']]))
- bookmarks = db.get_bookmarks(map(lambda bk: bk[0], bookmarks))
- bookmarks = map(lambda bk: bk.dict(), bookmarks)
+ if len(bookmarks) <> 0:
+ bookmarks = db.get_bookmarks(map(lambda bk: bk[0], bookmarks))
+ bookmarks = map(lambda bk: bk.dict(), bookmarks)
output(prefs, parents.pop(), parents, children, bookmarks, keywords)