From b6a4e9f954c274b7731371ed2107961cf9272d59 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Tue, 18 May 2004 22:21:13 +0000 Subject: the start of better kickstart error handling. create KickstartError class and raise that on kickstart errors. provide basic intf kickstartWindow methods don't pass intf in yet, because this is before the intf is up and running, so we can't use it --- gui.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui.py') diff --git a/gui.py b/gui.py index 66066a613..e60333cb0 100755 --- a/gui.py +++ b/gui.py @@ -634,6 +634,15 @@ class InstallInterface: win = ExceptionWindow (text) return win.getrc () + def kickstartErrorWindow(self, text): + s = _("The following error was found while parsing your " + "kickstart configuration:n\n%s") %(text,) + return self.messageWindow(_("Error Parsing Kickstart Config"), + s, + type = "custom", + custom_buttons = [_("_Reboot")] + custom_icon = "error") + def dumpWindow(self): window = MessageWindow("Save Crash Dump", _("Please insert a floppy now. All contents " -- cgit