From 1ff447ffaaa02cd0c46607f817c13328114145bc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 14 Jan 2010 23:06:00 +0100 Subject: add code to make GUI -> daemon settings passing less weird. not enabled yet Signed-off-by: Denys Vlasenko --- src/Gui/CCMainWindow.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Gui/CCMainWindow.py') diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index 432fd43..0bc00e5 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -18,6 +18,7 @@ try: except Exception, ex: rpm = None +from ConfBackend import ConfBackendGnomeKeyring, ConfBackendInitError import CCDBusBackend from CC_gui_functions import * from CCDumpList import getDumpList, DumpList @@ -42,11 +43,10 @@ class MainWindow(): sys.exit() except Exception, e: # show error message if connection fails - # FIXME add an option to start the daemon gui_error_message("%s" % e) sys.exit() #Set the Glade file - self.gladefile = "%s%sccgui.glade" % (sys.path[0],"/") + self.gladefile = "%s/ccgui.glade" % sys.path[0] self.wTree = gtk.glade.XML(self.gladefile) #Get the Main Window, and connect the "destroy" event @@ -304,6 +304,10 @@ class MainWindow(): self.pluginlist = getPluginInfoList(self.ccdaemon) for plugin in self.pluginlist.getReporterPlugins(): reporters_settings[str(plugin)] = plugin.Settings + # TODO: this way, we don't need to talk to daemon in order to get + # all plugin settings: + #reporters_settings2 = ConfBackendGnomeKeyring().load_all() + #log1("reporters_settings2:%s", str(reporters_settings2)) self.ccdaemon.Report(result, reporters_settings) #self.hydrate() except Exception, e: -- cgit