summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCMainWindow.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-09-29 10:17:05 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-09-29 10:17:05 +0200
commitd5bdbc372f3d6708df787d2f4d26bbd2134f2926 (patch)
treee7a02280abc93837135a89b803b4a1aa583927ba /src/Gui/CCMainWindow.py
parent8dd31065ff6967bc88eea3060a782232f6481026 (diff)
downloadabrt-d5bdbc372f3d6708df787d2f4d26bbd2134f2926.tar.gz
abrt-d5bdbc372f3d6708df787d2f4d26bbd2134f2926.tar.xz
abrt-d5bdbc372f3d6708df787d2f4d26bbd2134f2926.zip
GUI: send the reporters settings as an argument for Report()
- daemon shouldn't read from $HOME dir, as it is unsecure and won't work on NFS mounted homes.
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r--src/Gui/CCMainWindow.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 1502c0d..d10304c 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -14,6 +14,7 @@ from CCReporterDialog import ReporterDialog
from PluginsSettingsDialog import PluginsSettingsDialog
from SettingsDialog import SettingsDialog
from CCReport import Report
+from PluginList import getPluginInfoList
import ABRTExceptions
from abrt_utils import _
@@ -122,9 +123,11 @@ class MainWindow():
self.ccdaemon.connect("show", self.show_cb)
self.ccdaemon.connect("daemon-state-changed", self.on_daemon_state_changed_cb)
self.ccdaemon.connect("report-done", self.on_report_done_cb)
-
+
# load data
#self.load()
+ self.pluginlist = getPluginInfoList(self.ccdaemon)
+
def on_daemon_state_changed_cb(self, widget, state):
if state == "up":
self.hydrate()
@@ -294,7 +297,10 @@ class MainWindow():
self.update_pBar = False
self.pBarWindow.show_all()
self.timer = gobject.timeout_add (100,self.progress_update_cb)
- self.ccdaemon.Report(result)
+ reporters_settings = {}
+ for plugin in self.pluginlist.getReporterPlugins():
+ reporters_settings[str(plugin)] = plugin.Settings
+ self.ccdaemon.Report(result, reporters_settings)
#self.hydrate()
except Exception, e:
gui_error_message(_("Reporting failed!\n%s" % e))