From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QonTx-0002iB-68 for garchives@archives.gentoo.org; Thu, 04 Aug 2011 02:16:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93B9021C0E0; Thu, 4 Aug 2011 02:16:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6A7EB21C0E0 for ; Thu, 4 Aug 2011 02:16:07 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDE0A1B4031 for ; Thu, 4 Aug 2011 02:16:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DEFC48003C for ; Thu, 4 Aug 2011 02:16:05 +0000 (UTC) From: "Wiktor W Brodlo" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wiktor W Brodlo" Message-ID: Subject: [gentoo-commits] proj/anaconda:master commit in: iw/ X-VCS-Repository: proj/anaconda X-VCS-Files: iw/makeconf_gui.py X-VCS-Directories: iw/ X-VCS-Committer: wiktor X-VCS-Committer-Name: Wiktor W Brodlo X-VCS-Revision: ea3099be6db28a2525acdb4c8c482d95684e1666 Date: Thu, 4 Aug 2011 02:16:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: c1cffa6054635eb8cefe4f14aa4de125 commit: ea3099be6db28a2525acdb4c8c482d95684e1666 Author: wiktor w brodlo brodlo net> AuthorDate: Thu Aug 4 02:02:54 2011 +0000 Commit: Wiktor W Brodlo brodlo net> CommitDate: Thu Aug 4 02:02:54 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/anaconda.git;= a=3Dcommit;h=3Dea3099be iw/makeconf_gui.py: validation --- 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 _ =3D lambda x: gettext.ldgettext("anaconda", x) =20 class MakeconfWindow(InstallWindow): +=09 + def err(title, message): + self.intf.messageWindow(title, message, custom_icon=3D"error") + raise gui.StayOnScreen +=09 def getNext(self): + if self.march.get_active_text() =3D=3D "": + self.err(_("Select -march"), _("You need to choose the -march setting= !")) + if self.opt.get_active_text() =3D=3D ""; + self.err(_("Select -O"), _("You need to choose the -O setting!")) + =09 self.anaconda.makeconf_march =3D self.march.get_active_text() self.anaconda.makeconf_opt =3D self.opt.get_active_text() self.anaconda.makeconf_pipe =3D self.pipe.get_property("active")