Change CommandMessage.command from Command instance to command's name.
[hooke.git] / hooke / ui / commandline.py
index 4b4914398b896682b0b6edee0e30ec3432e6a407..14236ca24580e883e4e38596cc162ffb29f292fc 100644 (file)
@@ -130,7 +130,7 @@ class DoCommand (CommandMethod):
             self.cmd.stdout.write('Failure\n')
             return
         self.log.debug('executing %s with %s' % (self.command.name, args))
-        self.cmd.inqueue.put(CommandMessage(self.command, args))
+        self.cmd.inqueue.put(CommandMessage(self.command.name, args))
         while True:
             msg = self.cmd.outqueue.get()
             if isinstance(msg, Exit):