summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-30 16:33:56 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-30 16:33:56 +0100
commit309fb25e9b089618c37f1a741fa6009cce54ac9e (patch)
tree2e9b65c7511a2bb6b726ab70a9e488dad74beef9 /alot/widgets
parentcd35ec5f89cff3ba8c7780209efa7e8b0628744d (diff)
db/attachment: simplify the Attachment class
Make it a plain container around raw data and a few bits of metadata, rather than around a whole MIME part.
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/globals.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py
index 8b9b3065..7f2a9dcd 100644
--- a/alot/widgets/globals.py
+++ b/alot/widgets/globals.py
@@ -10,7 +10,6 @@ import operator
import urwid
from ..settings.const import settings
-from ..db.attachment import Attachment
from ..errors import CompletionError
@@ -22,8 +21,6 @@ class AttachmentWidget(urwid.WidgetWrap):
def __init__(self, attachment, selectable=True):
self._selectable = selectable
self.attachment = attachment
- if not isinstance(attachment, Attachment):
- self.attachment = Attachment(self.attachment)
att = settings.get_theming_attribute('thread', 'attachment')
focus_att = settings.get_theming_attribute('thread',
'attachment_focus')