Author: andar

Revision: 5868

Log:
        Fix exception when using the 'halt' command

Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog   2009-10-24 05:51:26 UTC (rev 5867)
+++ branches/1.2_RC/ChangeLog   2009-10-24 19:49:20 UTC (rev 5868)
@@ -19,6 +19,9 @@
        * Fix setting the torrent options via the options tab
        * Fix the private flag in the options tab
 
+==== Console ===
+       * Fix exception when using the 'halt' command
+       
 ==== Misc ====
        * Add man pages for deluge-console, deluge-gtk and deluge-web
 

Modified: branches/1.2_RC/deluge/ui/console/commands/halt.py
===================================================================
--- branches/1.2_RC/deluge/ui/console/commands/halt.py  2009-10-24 05:51:26 UTC 
(rev 5867)
+++ branches/1.2_RC/deluge/ui/console/commands/halt.py  2009-10-24 19:49:20 UTC 
(rev 5868)
@@ -44,9 +44,9 @@
         self.console = component.get("ConsoleUI")
 
         def on_shutdown(result):
-            self.write("{!success!}Daemon was shutdown")
+            self.console.write("{!success!}Daemon was shutdown")
 
         def on_shutdown_fail(reason):
-            self.write("{!error!}Unable to shutdown daemon: %s" % reason)
+            self.console.write("{!error!}Unable to shutdown daemon: %s" % 
reason)
 
         return 
client.daemon.shutdown().addCallback(on_shutdown).addErrback(on_shutdown_fail)

Modified: trunk/deluge/ui/console/commands/halt.py
===================================================================
--- trunk/deluge/ui/console/commands/halt.py    2009-10-24 05:51:26 UTC (rev 
5867)
+++ trunk/deluge/ui/console/commands/halt.py    2009-10-24 19:49:20 UTC (rev 
5868)
@@ -44,9 +44,9 @@
         self.console = component.get("ConsoleUI")
 
         def on_shutdown(result):
-            self.write("{!success!}Daemon was shutdown")
+            self.console.write("{!success!}Daemon was shutdown")
 
         def on_shutdown_fail(reason):
-            self.write("{!error!}Unable to shutdown daemon: %s" % reason)
+            self.console.write("{!error!}Unable to shutdown daemon: %s" % 
reason)
 
         return 
client.daemon.shutdown().addCallback(on_shutdown).addErrback(on_shutdown_fail)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to