Author: andar

Revision: 5171

Log:
        Fix 'debug' command and update some copyright headers

Diff:
Modified: trunk/deluge/ui/console/commands/config.py
===================================================================
--- trunk/deluge/ui/console/commands/config.py  2009-04-25 22:14:19 UTC (rev 
5170)
+++ trunk/deluge/ui/console/commands/config.py  2009-04-25 22:42:46 UTC (rev 
5171)
@@ -1,8 +1,8 @@
-#!/usr/bin/env python
 #
 # config.py
 #
 # Copyright (C) 2008-2009 Ido Abramovich <[email protected]>
+# Copyright (C) 2009 Andrew Resch <[email protected]>
 #
 # Deluge is free software.
 #

Modified: trunk/deluge/ui/console/commands/connect.py
===================================================================
--- trunk/deluge/ui/console/commands/connect.py 2009-04-25 22:14:19 UTC (rev 
5170)
+++ trunk/deluge/ui/console/commands/connect.py 2009-04-25 22:42:46 UTC (rev 
5171)
@@ -2,6 +2,7 @@
 # connect.py
 #
 # Copyright (C) 2008-2009 Ido Abramovich <[email protected]>
+# Copyright (C) 2009 Andrew Resch <[email protected]>
 #
 # Deluge is free software.
 #

Modified: trunk/deluge/ui/console/commands/debug.py
===================================================================
--- trunk/deluge/ui/console/commands/debug.py   2009-04-25 22:14:19 UTC (rev 
5170)
+++ trunk/deluge/ui/console/commands/debug.py   2009-04-25 22:42:46 UTC (rev 
5171)
@@ -1,8 +1,8 @@
-#!/usr/bin/env python
 #
 # debug.py
 #
 # Copyright (C) 2008-2009 Ido Abramovich <[email protected]>
+# Copyright (C) 2009 Andrew Resch <[email protected]>
 #
 # Deluge is free software.
 #
@@ -25,18 +25,18 @@
 from deluge.ui.console.main import BaseCommand
 from deluge.ui.client import client
 import deluge.ui.console.colors as colors
-import logging
+import deluge.log
 
 class Command(BaseCommand):
     """Enable and disable debugging"""
     usage = 'debug [on|off]'
     def handle(self, state='', **options):
         if state == 'on':
-            logging.disable(logging.DEBUG)
+            deluge.log.setLoggerLevel("debug")
         elif state == 'off':
-            logging.disable(logging.ERROR)
+            deluge.log.setLoggerLevel("error")
         else:
-            print templates.ERROR(self.usage)
+            console.write("{!error!}%s" %s usage)
 
-    def complete(self, text, *args):
-        return [ x for x in ['on', 'off'] if x.startswith(text) ]
+#    def complete(self, text, *args):
+#        return [ x for x in ['on', 'off'] if x.startswith(text) ]

Modified: trunk/deluge/ui/console/commands/quit.py
===================================================================
--- trunk/deluge/ui/console/commands/quit.py    2009-04-25 22:14:19 UTC (rev 
5170)
+++ trunk/deluge/ui/console/commands/quit.py    2009-04-25 22:42:46 UTC (rev 
5171)
@@ -1,8 +1,8 @@
-#!/usr/bin/env python
 #
 # quit.py
 #
 # Copyright (C) 2008-2009 Ido Abramovich <[email protected]>
+# Coptright (C) 2009 Andrew Resch <[email protected]>
 #
 # Deluge is free software.
 #



--~--~---------~--~----~------------~-------~--~----~
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