Lowercase initial word in some log messages.
[hooke.git] / hooke / ui / __init__.py
index 1b939144b6f2c1c1f693bca8088891507661e982..02e91513238b299d65790799a96bff330b9d4104 100644 (file)
 """
 
 import ConfigParser as configparser
+import logging
 
 from .. import version
 from ..config import Setting
-from ..engine import CloseEngine, CommandMessage
 from ..util.pluggable import IsSubclass, construct_odict
 
 try:
     from ..license import short_license
 except ImportError, e:
-    import logging
-    logging.warn('Could not load short_license from hooke.license')
+    logging.warn('could not load short_license from hooke.license')
     from .. import __license__
     def short_license(extra_info, **kwargs):
         return __license__
@@ -83,6 +82,11 @@ class UserInterface (object):
 
     # Assorted useful tidbits for subclasses
 
+    def _submit_command(self, command_message, ui_to_command_queue):
+        log = logging.getLogger('hooke')
+        log.debug('executing %s' % command_message)
+        ui_to_command_queue.put(command_message)
+
     def _splash_text(self, extra_info, **kwargs):
         return ("""
 Hooke version %s