From df06f6019df34fabfc0748744e67d27d62a2a75d Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Thu, 13 Oct 2011 19:53:49 +0100 Subject: imports and pep8 --- alot/commands/search.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'alot/commands/search.py') 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 - - -- cgit v1.2.3