diff options
author | Mike Fulbright <msf@redhat.com> | 2002-07-19 04:55:52 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-07-19 04:55:52 +0000 |
commit | 9c290c1b271f0a67db22131a4cd06024c2aca736 (patch) | |
tree | 8b181fe45d823d1993bd6a9065d8083b5526bc9d | |
parent | 5966633716eee84e062a2e86610c60cc310c3122 (diff) | |
download | anaconda-9c290c1b271f0a67db22131a4cd06024c2aca736.tar.gz anaconda-9c290c1b271f0a67db22131a4cd06024c2aca736.tar.xz anaconda-9c290c1b271f0a67db22131a4cd06024c2aca736.zip |
change api slightly
-rw-r--r-- | packages.py | 14 | ||||
-rw-r--r-- | textw/packages_text.py | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/packages.py b/packages.py index cdaef0b22..71f7949e9 100644 --- a/packages.py +++ b/packages.py @@ -1005,22 +1005,22 @@ def betaNagScreen(intf, dir): break # FIXME: this is a kind of poor way to do this, but it will work for now -def selectLanguageSupportGroups(id): - sup = id.langSupport.supported +def selectLanguageSupportGroups(comps, langSupport): + sup = langSupport.supported if len(sup) == 0: - sup = id.langSupport.getAllSupported() + sup = langSupport.getAllSupported() - for group in id.comps.compsxml.groups.values(): + for group in comps.compsxml.groups.values(): for name in sup: try: - lang = id.langSupport.langInfoByName[name][0] + lang = langSupport.langInfoByName[name][0] langs = language.expandLangs(lang) except: continue if group.langonly in langs: - if not id.comps.compsDict.has_key(group.name): + if not comps.compsDict.has_key(group.name): log("Where did the %s component go?" %(group.name,)) continue - id.comps.compsDict[group.name].select() + comps.compsDict[group.name].select() diff --git a/textw/packages_text.py b/textw/packages_text.py index 4ab1766fe..abcebbcf9 100644 --- a/textw/packages_text.py +++ b/textw/packages_text.py @@ -39,7 +39,7 @@ class PackageGroupWindow: label.setText(self.size(comps)) - def __call__(self, screen, comps, dispatch): + def __call__(self, screen, comps, langSupport, dispatch): origSelection = comps.getSelectionState() ct = CheckboxTree(height = 8, scroll = 1) |