From 3e2f8020bbf2e78e231cd0ab99d0d5c5ee7d9a42 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 13 Feb 2008 09:47:34 +0000 Subject: [PATCH] add enabled plugins to send info --- src/common.py | 4 ++-- src/interface.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common.py b/src/common.py index 8bb00cd25..390c15a02 100644 --- a/src/common.py +++ b/src/common.py @@ -210,7 +210,7 @@ def exec_command(executable, *parameters): warning.run() warning.destroy() -def send_info(): +def send_info(plugins=None): import threading class Send_Info_Thread(threading.Thread): def __init__(self): @@ -227,7 +227,7 @@ def send_info(): try: urllib.urlopen("http://deluge-torrent.org/stats_get.php?processor=" + \ platform.machine() + "&python=" + platform.python_version() \ - + "&os=" + platform.system() + "&pygtk=" + pygtk) + + "&os=" + platform.system() + "&pygtk=" + pygtk + "&plugins=" + plugins) except IOError: print "Network error while trying to send info" else: diff --git a/src/interface.py b/src/interface.py index 721117fb6..fdc580a78 100644 --- a/src/interface.py +++ b/src/interface.py @@ -118,7 +118,7 @@ class DelugeGTK: import time def _run_script(): - common.send_info() + common.send_info(self.config.get("enabled_plugins")) info_file = os.path.join(common.CONFIG_DIR, 'infosent')