diff options
author | 2011-08-04 02:02:54 +0000 | |
---|---|---|
committer | 2011-08-04 02:02:54 +0000 | |
commit | ea3099be6db28a2525acdb4c8c482d95684e1666 (patch) | |
tree | d2fe0b6f61c0cb2cec52ac7b7c1798234e84b781 | |
parent | ui/anaconda.glade: make more space on the screen (diff) | |
download | anaconda-ea3099be6db28a2525acdb4c8c482d95684e1666.tar.gz anaconda-ea3099be6db28a2525acdb4c8c482d95684e1666.tar.bz2 anaconda-ea3099be6db28a2525acdb4c8c482d95684e1666.zip |
iw/makeconf_gui.py: validation
-rw-r--r-- | iw/makeconf_gui.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/iw/makeconf_gui.py b/iw/makeconf_gui.py index 3eb81eb..50a0d69 100644 --- a/iw/makeconf_gui.py +++ b/iw/makeconf_gui.py @@ -35,7 +35,17 @@ import gettext _ = lambda x: gettext.ldgettext("anaconda", x) class MakeconfWindow(InstallWindow): + + def err(title, message): + self.intf.messageWindow(title, message, custom_icon="error") + raise gui.StayOnScreen + def getNext(self): + if self.march.get_active_text() == "": + self.err(_("Select -march"), _("You need to choose the -march setting!")) + if self.opt.get_active_text() == ""; + self.err(_("Select -O"), _("You need to choose the -O setting!")) + self.anaconda.makeconf_march = self.march.get_active_text() self.anaconda.makeconf_opt = self.opt.get_active_text() self.anaconda.makeconf_pipe = self.pipe.get_property("active") |