summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-12-03 23:51:04 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-12-03 23:51:04 +0000
commitf0d6c425a6942239c3b22f7a18ca0995f67ce392 (patch)
treedd7d997f4ab331c26f2de3fecdbdfee973dcdfbb /alot/buffers.py
parent8b9822d7c0f69f181735158f6eab747e7a362d48 (diff)
started buffers documentation
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index 64a069a8..d85065b2 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -9,6 +9,7 @@ from message import decode_header
class Buffer(object):
+ """Abstract base class for buffers."""
def __init__(self, ui, widget, name):
self.ui = ui
self.typename = name
@@ -24,16 +25,19 @@ class Buffer(object):
return self.body.selectable()
def rebuild(self):
+ """tells the buffer to (re)construct its visible content."""
pass
def apply_command(self, cmd):
# call and store it directly for a local cmd history
+ # TODO: not needed for now
self.ui.apply_command(cmd)
def keypress(self, size, key):
return self.body.keypress(size, key)
def cleanup(self):
+ """called before buffer is dismissed"""
pass