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 1QdWEF-0001gr-Ug for garchives@archives.gentoo.org; Sun, 03 Jul 2011 23:37:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58EA221C13E; Sun, 3 Jul 2011 23:37:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1ABAE21C13E for ; Sun, 3 Jul 2011 23:37:24 +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 7D0B61B400A for ; Sun, 3 Jul 2011 23:37:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 93D518003D for ; Sun, 3 Jul 2011 23:37:23 +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: /, ui/, iw/ X-VCS-Repository: proj/anaconda X-VCS-Files: dispatch.py gui.py installclass.py iw/profile_gui.py ui/profile.glade X-VCS-Directories: / ui/ iw/ X-VCS-Committer: wiktor X-VCS-Committer-Name: Wiktor W Brodlo X-VCS-Revision: c17fa85feb9b5da645969a0fd96c3873e4e7c80b Date: Sun, 3 Jul 2011 23:37:23 +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: 3d74de6a132804c4ddcfd917d10a4953 commit: c17fa85feb9b5da645969a0fd96c3873e4e7c80b Author: wiktor w brodlo brodlo net> AuthorDate: Sun Jul 3 23:37:10 2011 +0000 Commit: Wiktor W Brodlo brodlo net> CommitDate: Sun Jul 3 23:37:10 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/anaconda.git;= a=3Dcommit;h=3Dc17fa85f profile selection --- dispatch.py | 2 +- gui.py | 1 + installclass.py | 1 + iw/profile_gui.py | 64 +++++++++++++++++++++++++++++++++++++++++++++++= ++++++ ui/profile.glade | 17 ++++++++++--- 5 files changed, 80 insertions(+), 5 deletions(-) diff --git a/dispatch.py b/dispatch.py index 4ade775..55064ea 100644 --- a/dispatch.py +++ b/dispatch.py @@ -98,7 +98,7 @@ installSteps =3D [ # Installing the Gentoo Base System ("mirrorselect", ), ("mirrorselect-sync", ), - # profile + ("profile", ), # use =20 # Configuring the Kernel diff --git a/gui.py b/gui.py index 41f127c..8c9bf17 100755 --- a/gui.py +++ b/gui.py @@ -82,6 +82,7 @@ stepToClass =3D { # Installing the Gentoo Base System "mirrorselect": ("mirrorselect_gui", "MirrorselectWindow"), "mirrorselect-sync": ("mirrorselect-sync_gui", "MirrorselectSyncWind= ow"), + "profile": ("profile_gui", "ProfileWindow"), =20 # Configuring the Kernel "timezone" : ("timezone_gui", "TimezoneWindow"), diff --git a/installclass.py b/installclass.py index 28104d8..a6413a6 100644 --- a/installclass.py +++ b/installclass.py @@ -105,6 +105,7 @@ class BaseInstallClass(object): # Installing the Gentoo Base System "mirrorselect", "mirrorselect-sync", + "profile" =20 # Configuring the Kernel "timezone", diff --git a/iw/profile_gui.py b/iw/profile_gui.py new file mode 100644 index 0000000..79ed4a3 --- /dev/null +++ b/iw/profile_gui.py @@ -0,0 +1,64 @@ +# +# profile_gui.py: gui profile selection. +# +# Copyright (C) 2011 wiktor w brodlo +# Copyright (C) 2011 Gentoo Foundation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import string +import gtk +import gtk.glade +import gtk.gdk +import gobject +import pango +import sys +import gui +import subprocess + +from iw_gui import * + +from constants import * +import gettext +_ =3D lambda x: gettext.ldgettext("anaconda", x) + +class ProfileWindow(InstallWindow): + def getNext(self): + return None + + def getScreen(self, anaconda): + self.anaconda =3D anaconda + self.intf =3D anaconda.intf =20 + + (self.xml, self.align) =3D gui.getGladeWidget("profile.glade", "profil= e_align") + =09 + out =3D subprocess.check_output(["eselect", "profile", "list"]) + lines =3D out.split("\n") + del lines[0] + =09 + profiles =3D [] + for line in lines: + s =3D line.split() + if s !=3D []: + profiles.append(s[1]) + =09 + box =3D self.xml.get_widget("profiles_box") + =09 + for profile in profiles: + cb =3D gtk.CheckButton(label=3Dprofile) + box.pack_start(cb) + + return self.align + diff --git a/ui/profile.glade b/ui/profile.glade index af75dce..c3125dc 100644 --- a/ui/profile.glade +++ b/ui/profile.glade @@ -19,11 +19,14 @@ True + 0 + 0 A profile = is a building block for any Gentoo system. Not only does it specify defau= lt values for USE, CFLAGS and other important variables, it also locks th= e system to a certain range of package versions. This is all maintained b= y the Gentoo developers. Note: The developer subprofile is specifically for Gentoo Linux developm= ent tasks. It is not meant to help set up general development environment= s. center + False 0 @@ -34,12 +37,18 @@ Note: The developer subprofile is specifically for Ge= ntoo Linux development task automatic automatic - + True - vertical - True + queue - + + True + vertical + True + + + +