Author: andar

Revision: 5913

Log:
        Fix adding torrents from the Queued Torrents dialog

Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog   2009-11-03 03:19:30 UTC (rev 5912)
+++ branches/1.2_RC/ChangeLog   2009-11-03 03:25:57 UTC (rev 5913)
@@ -1,6 +1,7 @@
 === Deluge 1.2.0_rc4 (In Development) ===
 ==== GtkUI ====
        * Fix showing the 'Other' speed dialogs in Windows
+       * Fix adding torrents from the Queued Torrents dialog
 
 ==== Web ====
        * Fix installing the deluge-web manpage

Modified: branches/1.2_RC/deluge/ui/gtkui/queuedtorrents.py
===================================================================
--- branches/1.2_RC/deluge/ui/gtkui/queuedtorrents.py   2009-11-03 03:19:30 UTC 
(rev 5912)
+++ branches/1.2_RC/deluge/ui/gtkui/queuedtorrents.py   2009-11-03 03:25:57 UTC 
(rev 5913)
@@ -33,7 +33,7 @@
 #
 #
 
-
+import base64
 import os.path
 
 import gtk, gtk.glade
@@ -191,7 +191,7 @@
                 else:
                     client.core.add_torrent_file(
                         os.path.split(torrent_path)[-1],
-                        base64.encodestring(open(torrent_path).read()),
+                        base64.encodestring(open(torrent_path, "rb").read()),
                         None)
 
         self.liststore.foreach(add_torrent, None)

Modified: trunk/deluge/ui/gtkui/queuedtorrents.py
===================================================================
--- trunk/deluge/ui/gtkui/queuedtorrents.py     2009-11-03 03:19:30 UTC (rev 
5912)
+++ trunk/deluge/ui/gtkui/queuedtorrents.py     2009-11-03 03:25:57 UTC (rev 
5913)
@@ -33,7 +33,7 @@
 #
 #
 
-
+import base64
 import os.path
 
 import gtk, gtk.glade
@@ -191,7 +191,7 @@
                 else:
                     client.core.add_torrent_file(
                         os.path.split(torrent_path)[-1],
-                        base64.encodestring(open(torrent_path).read()),
+                        base64.encodestring(open(torrent_path, "rb").read()),
                         None)
 
         self.liststore.foreach(add_torrent, None)



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