diff options
author | pazz <patricktotzke@gmail.com> | 2011-05-26 22:38:48 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-05-26 22:38:48 +0100 |
commit | 1222bff7b5c2bafa881c201b97298b24b1f9999a (patch) | |
tree | 9918126ce8e438a36141c1faadcb4087d500e930 /alot/buffer.py | |
parent | 7aee28f734d41913f14e52bf310f1f88b88b6761 (diff) |
use the wraper db.Thread instead of notmuch.Thread
Diffstat (limited to 'alot/buffer.py')
-rw-r--r-- | alot/buffer.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/alot/buffer.py b/alot/buffer.py index 814a85c1..03e0cf8a 100644 --- a/alot/buffer.py +++ b/alot/buffer.py @@ -108,13 +108,11 @@ class SearchBuffer(Buffer): else: focusposition = 0 self.isinitialized = True - self.ui.logger.debug("focuspos: %d"%focusposition) self.result_count = self.dbman.count_messages(self.querystring) - self.ui.logger.debug("resultcount: %d"%self.result_count) - threads = self.dbman.search_threads(self.querystring) - self.ui.logger.debug("real len:%d"%len(self.dbman.search_threads(self.querystring))) - self.threadlist = IteratorWalker(threads, widgets.ThreadlineWidget) + tids = self.dbman.search_thread_ids(self.querystring) + self.threadlist = IteratorWalker(tids.__iter__(), widgets.ThreadlineWidget, + dbman=self.dbman) self.ui.logger.debug(self.threadlist.lines) self.original_widget = urwid.ListBox(self.threadlist) self.ui.logger.debug(self.threadlist.lines) |