summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/db.py3
-rw-r--r--alot/settings.py1
-rw-r--r--alot/widgets.py1
3 files changed, 1 insertions, 4 deletions
diff --git a/alot/db.py b/alot/db.py
index d45c263f..cf4831d1 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -384,7 +384,7 @@ class Thread(object):
:rtype: dict mapping :class:`~alot.message.Message` to a list of
:class:`~alot.message.Message`.
"""
- if not self._messages:
+ if not self._messages: # if not already cached
query = self._dbman.query('thread:' + self._id)
thread = query.search_threads().next()
@@ -397,7 +397,6 @@ class Thread(object):
acc[M].append(accumulate(acc, m))
return M
- # TODO: only do this once
self._messages = {}
for m in thread.get_toplevel_messages():
self._toplevel_messages.append(accumulate(self._messages, m))
diff --git a/alot/settings.py b/alot/settings.py
index f40d6938..3987fd8c 100644
--- a/alot/settings.py
+++ b/alot/settings.py
@@ -169,7 +169,6 @@ class HookManager(object):
def get(self, key):
"""return hook (`callable`) identified by `key`"""
- #TODO: return None if undefined instead of raising a keyError
if self.module:
if key in self.module.__dict__:
return self.module.__dict__[key]
diff --git a/alot/widgets.py b/alot/widgets.py
index bab2fbcc..0baf8d6a 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -377,7 +377,6 @@ class MessageWidget(urwid.WidgetWrap):
def get_focus(self):
return self.pile.get_focus()
- #TODO re-read tags
def rebuild(self):
if not self.folded: # only if not already unfolded
hw = self._get_header_widget()