summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/buffer.py6
-rw-r--r--alot/helper.py1
-rw-r--r--alot/walker.py1
-rw-r--r--alot/widgets.py3
4 files changed, 4 insertions, 7 deletions
diff --git a/alot/buffer.py b/alot/buffer.py
index a1a4fc67..b313c231 100644
--- a/alot/buffer.py
+++ b/alot/buffer.py
@@ -31,7 +31,6 @@ class Buffer(object):
def __init__(self, ui, widget, name):
self.ui = ui
self.typename = name
- self.autoparms = {}
self.body = widget
def __str__(self):
@@ -61,7 +60,6 @@ class BufferlistBuffer(Buffer):
self.isinitialized = False
self.rebuild()
Buffer.__init__(self, ui, self.body, 'bufferlist')
- self.autoparms = {'buffer': self.get_selected_buffer}
def index_of(self, b):
return self.ui.buffers.index(b)
@@ -100,7 +98,6 @@ class EnvelopeBuffer(Buffer):
self.mail = mail
self.rebuild()
Buffer.__init__(self, ui, self.body, 'envelope')
- self.autoparms = {'email': self.get_email}
def __str__(self):
return "to: %s" % decode_header(self.mail['To'])
@@ -145,7 +142,6 @@ class SearchBuffer(Buffer):
self.isinitialized = False
self.rebuild()
Buffer.__init__(self, ui, self.body, 'search')
- self.autoparms = {'thread': self.get_selected_thread}
def __str__(self):
return '%s (%d threads)' % (self.querystring, self.result_count)
@@ -193,7 +189,6 @@ class ThreadBuffer(Buffer):
self.thread = thread
self.rebuild()
Buffer.__init__(self, ui, self.body, 'thread')
- self.autoparms = {'thread': self.thread}
def __str__(self):
return '%s, (%d)' % (self.thread.get_subject(), self.message_count)
@@ -268,7 +263,6 @@ class TagListBuffer(Buffer):
self.isinitialized = False
self.rebuild()
Buffer.__init__(self, ui, self.body, 'taglist')
- self.autoparms = {}
def rebuild(self):
if self.isinitialized:
diff --git a/alot/helper.py b/alot/helper.py
index 785284cd..ce9a1b61 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -212,6 +212,7 @@ def shell_quote(text):
'''
return "'%s'" % text.replace("'", """'"'"'""")
+
def tag_cmp(a, b):
r'''
Sorting tags using this function puts all tags of length 1 at the
diff --git a/alot/walker.py b/alot/walker.py
index d7869ef7..7fcca7b2 100644
--- a/alot/walker.py
+++ b/alot/walker.py
@@ -18,6 +18,7 @@ Copyright (C) 2011 Patrick Totzke <patricktotzke@gmail.com>
"""
import urwid
+
class IteratorWalker(urwid.ListWalker):
def __init__(self, it, containerclass, **kwargs):
self.kwargs = kwargs
diff --git a/alot/widgets.py b/alot/widgets.py
index 14d97d6c..2f00bf08 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -56,7 +56,8 @@ class ThreadlineWidget(urwid.AttrMap):
cols.append(('fixed', len(mailcountstring), self.mailcount_w))
self.tag_widgets = [TagWidget(tag) for tag in self.thread.get_tags()]
- self.tag_widgets.sort(tag_cmp, lambda tag_widget: tag_widget.translated)
+ self.tag_widgets.sort(tag_cmp,
+ lambda tag_widget: tag_widget.translated)
for tag_widget in self.tag_widgets:
cols.append(('fixed', tag_widget.width(), tag_widget))