summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-09-20 19:37:06 +0000
committerChris Lumens <clumens@redhat.com>2005-09-20 19:37:06 +0000
commit70d10ea749562734dd0f2f8f434c2a524f5e34ad (patch)
tree83c44e51ae9f55b46f06aa70b816267493e0a4d8 /text.py
parent71595af83e28dff1fd608e224ca13bbfa4b15c7d (diff)
downloadanaconda-70d10ea749562734dd0f2f8f434c2a524f5e34ad.tar.gz
anaconda-70d10ea749562734dd0f2f8f434c2a524f5e34ad.tar.xz
anaconda-70d10ea749562734dd0f2f8f434c2a524f5e34ad.zip
Use glade for the exception dialog and display the full traceback on the
bottom.
Diffstat (limited to 'text.py')
-rw-r--r--text.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/text.py b/text.py
index 26adb8285..6a685ae6f 100644
--- a/text.py
+++ b/text.py
@@ -218,7 +218,7 @@ class InstallInterface:
from string import joinfields
list = traceback.format_exception(type, value, tb)
text = joinfields(list, "")
- rc = self.exceptionWindow(_("Exception Occurred"), text)
+ rc = self.exceptionWindow(text)
if rc:
import pdb
pdb.post_mortem(tb)
@@ -282,7 +282,7 @@ class InstallInterface:
return 0
- def exceptionWindow(self, title, text):
+ def exceptionWindow(self, shortText, longTextFile):
try:
floppyDevices = 0
for dev in kudzu.probe(kudzu.CLASS_FLOPPY, kudzu.BUS_UNSPEC,
@@ -291,14 +291,15 @@ class InstallInterface:
floppyDevices = floppyDevices + 1
except:
floppyDevices = 0
+
+ ugh = "%s\n\n" % (exceptionText,)
if floppyDevices > 0 or DEBUG:
- ugh = "%s\n\n" % (exceptionText,)
buttons=[TEXT_OK_BUTTON, _("Save"), _("Debug")]
else:
- ugh = "%s\n\n" % (exceptionTextNoFloppy,)
buttons=[TEXT_OK_BUTTON, _("Debug")]
- rc = ButtonChoiceWindow(self.screen, title, ugh + text, buttons)
+ rc = ButtonChoiceWindow(self.screen, _("Exception Occurred"),
+ ugh + shortText, buttons)
if rc == string.lower(_("Debug")):
return 1
elif rc == string.lower(_("Save")):