Author: johnnyg

Revision: 5413

Log:
        Fix error when sending stats (quote_plus expects string not list).

Diff:
Modified: branches/1.1.0_RC/deluge/core/preferencesmanager.py
===================================================================
--- branches/1.1.0_RC/deluge/core/preferencesmanager.py 2009-06-23 23:20:11 UTC 
(rev 5412)
+++ branches/1.1.0_RC/deluge/core/preferencesmanager.py 2009-06-24 02:35:24 UTC 
(rev 5413)
@@ -447,8 +447,9 @@
                         url = 
"http://deluge-torrent.org/stats_get.php?processor="; + \
                             platform.machine() + "&python=" + 
platform.python_version() \
                             + "&deluge=" + deluge.common.get_version() \
-                            + "&os=" + platform.system() \
-                            + "&plugins=" + 
quote_plus(self.config["enabled_plugins"])
+                            + "&os=" + platform.system()
+                        for plugin in self.config["enabled_plugins"]:
+                            url += "&plugins=" + quote_plus(plugin)
                         urlopen(url)
                     except IOError, e:
                         log.debug("Network error while trying to send info: 
%s", e)

Modified: trunk/deluge/core/preferencesmanager.py
===================================================================
--- trunk/deluge/core/preferencesmanager.py     2009-06-23 23:20:11 UTC (rev 
5412)
+++ trunk/deluge/core/preferencesmanager.py     2009-06-24 02:35:24 UTC (rev 
5413)
@@ -458,8 +458,9 @@
                         url = 
"http://deluge-torrent.org/stats_get.php?processor="; + \
                             platform.machine() + "&python=" + 
platform.python_version() \
                             + "&deluge=" + deluge.common.get_version() \
-                            + "&os=" + platform.system() \
-                            + "&plugins=" + 
quote_plus(self.config["enabled_plugins"])
+                            + "&os=" + platform.system()
+                        for plugin in self.config["enabled_plugins"]:
+                            url += "&plugins=" + quote_plus(plugin)
                         urlopen(url)
                     except IOError, e:
                         log.debug("Network error while trying to send info: 
%s", e)



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