From b4f5605505dad572f4c4ea47e03d8d678c351003 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Tue, 20 Feb 2007 19:53:20 +0000 Subject: Renamed package.get_env_var to package.get_package_settings --- portato/gui/gtk/usetips.py | 4 ++-- portato/gui/gtk/windows.py | 2 +- portato/gui/gui_helper.py | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'portato/gui') diff --git a/portato/gui/gtk/usetips.py b/portato/gui/gtk/usetips.py index d59e397..75bb63f 100644 --- a/portato/gui/gtk/usetips.py +++ b/portato/gui/gtk/usetips.py @@ -66,11 +66,11 @@ class UseTips (TreeViewTooltips): string = "" if len(enabled) > 0: - string = "+"+"\n+".join(enabled)+"" + string = "+%s" % ("\n+".join(enabled),) if len(disabled) > 0: string = string + "\n" if len(disabled) > 0: - string = string+"- " + "\n- ".join(disabled) + "" + string = string+"- %s" % ("\n- ".join(disabled),) return string diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 7841e5e..d5ea943 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -388,7 +388,7 @@ class PackageTable: self.comboVB.pack_start(self.vCombo) # the label (must be here, because it depends on the combo box) - desc = self.actual_package().get_env_var("DESCRIPTION").replace("&","&") + desc = self.actual_package().get_package_settings("DESCRIPTION").replace("&","&") if not desc: desc = "" use_markup = False diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py index cf03a57..79064b6 100644 --- a/portato/gui/gui_helper.py +++ b/portato/gui/gui_helper.py @@ -12,7 +12,7 @@ # some backend things from portato import backend -from portato.backend import flags, system +from portato.backend import flags, system, set_system from portato.helper import * # parser @@ -116,10 +116,16 @@ class Config: @see: L{helper.set_debug()}""" set_debug(self.get_boolean("debug_opt")) + def modify_system_config (self): + """Sets the system config. + @see: L{backend.set_system()}""" + set_system(self.get("system_opt")) + def modify_external_configs (self): """Convenience function setting all external configs.""" self.modify_debug_config() self.modify_flags_config() + self.modify_system_config() def set_local(self, cpv, name, val): """Sets some local config. -- cgit v1.2.3-54-g00ecf