summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-13 19:53:49 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-13 19:53:49 +0100
commitdf06f6019df34fabfc0748744e67d27d62a2a75d (patch)
treee44cefb4ccaedacba336cec1728caa2043cf2bfa /alot/commands/search.py
parent897820c419d68fe38e160f03f0374c703a752183 (diff)
imports and pep8
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r--alot/commands/search.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py
index 45c05763..1b68e491 100644
--- a/alot/commands/search.py
+++ b/alot/commands/search.py
@@ -1,14 +1,15 @@
-from commands import Command, registerCommand
+from alot.commands import Command, registerCommand
from twisted.internet import defer
-from db import DatabaseROError
-import commands
-import buffers
+from alot.db import DatabaseROError
+from alot import commands
+from alot import buffers
MODE = 'search'
-@registerCommand(MODE, 'openthread', {}) #todo: make this select
+
+@registerCommand(MODE, 'openthread', {}) # todo: make this select
class OpenThreadCommand(Command):
"""open a new thread-view buffer"""
def __init__(self, thread=None, **kwargs):
@@ -68,6 +69,7 @@ class ToggleThreadTagCommand(Command):
elif isinstance(cb, buffers.ThreadBuffer):
pass
+
@registerCommand(MODE, 'refine', {})
class RefineCommand(Command):
"""refine the query of the currently open searchbuffer"""
@@ -143,5 +145,3 @@ class RetagCommand(Command):
sbuffer = ui.current_buffer
threadwidget = sbuffer.get_selected_threadline()
threadwidget.rebuild() # rebuild and redraw the line
-
-