diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-05 19:53:38 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-05 19:53:38 +0000 |
commit | 1cf308303cf227738000f8a66bd2173190678a2f (patch) | |
tree | 3636419567cd3a6d13c6d94c9630f7de274bae29 /text.py | |
parent | b04ac2a2f48c8c8c6d6894d58efabf391fd4ec81 (diff) | |
download | anaconda-1cf308303cf227738000f8a66bd2173190678a2f.tar.gz anaconda-1cf308303cf227738000f8a66bd2173190678a2f.tar.xz anaconda-1cf308303cf227738000f8a66bd2173190678a2f.zip |
dsiplay no help is available message rather then recursing endlessly
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -758,7 +758,7 @@ class ProgressWindow: class InstallInterface: - def helpWindow(self, screen, key): + def helpWindow(self, screen, key, firstTime = 1): try: lang = cat.getlangs() if not lang or lang[0] == "en_US": @@ -770,8 +770,14 @@ class InstallInterface: % (lang, key) try: f = open(fn) - except IOError: - return self.helpWindow(screen, "helponhelp") + except IOError, msg: + if firstTime: + return self.helpWindow(screen, "helponhelp", firstTime = 0) + else: + ButtonChoiceWindow(screen, _("Help not available"), + _("No help is available for this install."), + buttons = [ _("OK") ]) + return None l = f.readlines() while not string.strip(l[0]): |