From: W. Trevor King Date: Sat, 24 Jul 2010 17:44:29 +0000 (-0400) Subject: Fix hooke -> commands typos in ui and ui.commandline. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d4a9642c599b46201b1dffa29c9913825b9a0eb2;p=hooke.git Fix hooke -> commands typos in ui and ui.commandline. --- diff --git a/hooke/ui/__init__.py b/hooke/ui/__init__.py index 38311b4..42085c2 100644 --- a/hooke/ui/__init__.py +++ b/hooke/ui/__init__.py @@ -29,7 +29,7 @@ from ..util.pluggable import IsSubclass USER_INTERFACE_MODULES = [ 'commandline', - #'gui', + 'gui', ] """List of user interface modules. TODO: autodiscovery """ @@ -86,7 +86,7 @@ class UserInterface (object): except configparser.NoSectionError: self.config = {} - def run(self, hooke, ui_to_command_queue, command_to_ui_queue): + def run(self, commands, ui_to_command_queue, command_to_ui_queue): return # Assorted useful tidbits for subclasses diff --git a/hooke/ui/commandline.py b/hooke/ui/commandline.py index c5f3353..005e039 100644 --- a/hooke/ui/commandline.py +++ b/hooke/ui/commandline.py @@ -290,7 +290,7 @@ class LocalHelpCommand (Command): help='The name of the command you want help with.') ] - def _run(self, hooke, inqueue, outqueue, params): + def _run(self, commands, inqueue, outqueue, params): raise NotImplementedError # cmd.Cmd already implements .do_help() class LocalExitCommand (Command): @@ -307,7 +307,7 @@ typing mistakes ;). """.strip()), ]) - def _run(self, hooke, inqueue, outqueue, params): + def _run(self, commands, inqueue, outqueue, params): """The guts of the `do_exit/_quit/_EOF` commands. A `True` return stops :meth:`.cmdloop` execution.