Tolte stampe di debug e piccolo baco.

Leonardo [2010-06-21 08:55]
Tolte stampe di debug e piccolo baco.
Filename
DrPrintBackend.py
DrPrintGui/MainWin.py
diff --git a/DrPrintBackend.py b/DrPrintBackend.py
index 7905158..dce23a7 100644
--- a/DrPrintBackend.py
+++ b/DrPrintBackend.py
@@ -40,8 +40,6 @@ class Backend(gobject.GObject):
         stdin, stdout, stderr = client.exec_command("lpq -P%s" % printer)
         output = stdout.read()

-        print output
-
         # Parse output
         jobs = []
         for line in re.findall(r"active\s+(\w+)\s+(\d+)\s+(.+)\s+(\d+) bytes", output):
diff --git a/DrPrintGui/MainWin.py b/DrPrintGui/MainWin.py
index 15775e8..d86823f 100644
--- a/DrPrintGui/MainWin.py
+++ b/DrPrintGui/MainWin.py
@@ -168,7 +168,7 @@ class MainWin(gtk.Window):
         # Se siamo riusciti a scucire qualche informazione la mostriamo,
         # altrimenti no.
         self.queue_button.set_state("idle")
-        if jobs:
+        if jobs is not None:
 	  qd = QueueDialog(jobs, printer)
 	  resp = qd.run()
 	  qd.destroy()
ViewGit