diff options
author | Matt Wilson <msw@redhat.com> | 2000-05-11 20:42:38 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-05-11 20:42:38 +0000 |
commit | 751d75f05a59d79e130397adb5150c9ee3861313 (patch) | |
tree | 7b3d2d78896ccc3acdba565e841da04b87e0c38a | |
parent | 0b4190b75187c23e2768daa913b22a836b60b76d (diff) | |
download | anaconda-751d75f05a59d79e130397adb5150c9ee3861313.tar.gz anaconda-751d75f05a59d79e130397adb5150c9ee3861313.tar.xz anaconda-751d75f05a59d79e130397adb5150c9ee3861313.zip |
use showgroups field from instclass
-rw-r--r-- | installclass.py | 1 | ||||
-rw-r--r-- | iw/package_gui.py | 15 | ||||
-rw-r--r-- | textw/packages_text.py | 13 |
3 files changed, 26 insertions, 3 deletions
diff --git a/installclass.py b/installclass.py index 63107c22f..c5a334897 100644 --- a/installclass.py +++ b/installclass.py @@ -224,6 +224,7 @@ class BaseInstallClass: self.raidList = [] self.name = "" self.pixmap = "" + self.showgroups = None if iutil.getArch () == "alpha": self.addToSkipList("bootdisk") diff --git a/iw/package_gui.py b/iw/package_gui.py index 6f33fc95c..32d437fe6 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -438,9 +438,20 @@ class PackageSelectionWindow (InstallWindow): box = GtkVBox (FALSE, 0) - self.checkButtons = [] + self.checkButtons = [] + klass = self.todo.getClass () for comp in self.todo.comps: - if not comp.hidden: + show = 0 + if klass.showgroups: + try: + klass.showgroups.index (comp.name) + show = 1 + except ValueError: + # comp not in show list + pass + else: + show = not comp.hidden + if show: pixname = string.replace (comp.name, ' ', '-') pixname = string.replace (pixname, '/', '-') pixname = string.replace (pixname, '.', '-') diff --git a/textw/packages_text.py b/textw/packages_text.py index 91383c6e4..bff012f3f 100644 --- a/textw/packages_text.py +++ b/textw/packages_text.py @@ -33,8 +33,19 @@ class PackageGroupWindow: origSelection = todo.comps.getSelectionState() ct = CheckboxTree(height = 8, scroll = 1) + klass = todo.getClass () for comp in todo.comps: - if not comp.hidden: + show = 0 + if klass.showgroups: + try: + klass.showgroups.index (comp.name) + show = 1 + except ValueError: + # comp not in show list + pass + else: + show = not comp.hidden + if show: ct.append(_(comp.name), comp, comp.selected) cb = Checkbox (_("Select individual packages"), individual.get ()) |