summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-12-05 14:58:17 -0500
committerJeremy Katz <katzj@redhat.com>2007-12-05 14:58:31 -0500
commit2079eeee7a0bd7fb5b05e9fb6214a1e3c3d90994 (patch)
tree73f38b64e8843d989de32fd61dd6defb517ac99a /textw
parent79135e00aa36b08151aef0b843420e394b72a534 (diff)
downloadanaconda-2079eeee7a0bd7fb5b05e9fb6214a1e3c3d90994.tar.gz
anaconda-2079eeee7a0bd7fb5b05e9fb6214a1e3c3d90994.tar.xz
anaconda-2079eeee7a0bd7fb5b05e9fb6214a1e3c3d90994.zip
Remove confirmation screen
Diffstat (limited to 'textw')
-rw-r--r--textw/confirm_text.py74
1 files changed, 0 insertions, 74 deletions
diff --git a/textw/confirm_text.py b/textw/confirm_text.py
deleted file mode 100644
index 2bb7f3d98..000000000
--- a/textw/confirm_text.py
+++ /dev/null
@@ -1,74 +0,0 @@
-#
-# confirm_text.py: text mode install/upgrade confirmation window
-#
-# Copyright 2001-2003 Red Hat, Inc.
-#
-# This software may be freely redistributed under the terms of the GNU
-# library public license.
-#
-# You should have received a copy of the GNU Library Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-import sys
-
-from snack import *
-from constants_text import *
-from rhpl.translate import _
-from image import presentRequiredMediaMessage
-
-class BeginInstallWindow:
- def __call__ (self, screen, anaconda):
- rc = ButtonChoiceWindow (screen, _("Installation to begin"),
- _("A complete log of your installation will be in "
- "%s after rebooting your system. You "
- "may want to keep this file for later reference.") %("/root/install.log",),
- buttons = [ _("OK"), _("Back") ],
- help = "begininstall")
- if rc == string.lower (_("Back")):
- return INSTALL_BACK
-
- if anaconda.methodstr.startswith("cdrom://") and not anaconda.isKickstart:
- rc = presentRequiredMediaMessage(anaconda)
-
- if rc == 0:
- rc2 = anaconda.intf.messageWindow(_("Reboot?"),
- _("The system will be rebooted now."),
- type="custom", custom_icon="warning",
- custom_buttons=[_("_Back"), _("_Reboot")])
- if rc2 == 1:
- sys.exit(0)
- else:
- return INSTALL_BACK
- elif rc == 1: # they asked to go back
- return INSTALL_BACK
-
- return INSTALL_OK
-
-class BeginUpgradeWindow:
- def __call__ (self, screen, anaconda):
- rc = ButtonChoiceWindow (screen, _("Upgrade to begin"),
- _("A complete log of your upgrade will be in "
- "%s after rebooting your system. You "
- "may want to keep this file for later reference." %("/root/upgrade.log",)),
- buttons = [ _("OK"), _("Back") ],
- help = "beginupgrade")
- if rc == string.lower (_("Back")):
- return INSTALL_BACK
-
- if anaconda.methodstr.startswith("cdrom://") and not anaconda.isKickstart:
- rc = presentRequiredMediaMessage(anaconda)
-
- if rc == 0:
- rc2 = anaconda.intf.messageWindow(_("Reboot?"),
- _("The system will be rebooted now."),
- type="custom", custom_icon="warning",
- custom_buttons=[_("_Back"), _("_Reboot")])
- if rc2 == 1:
- sys.exit(0)
- else:
- return INSTALL_BACK
- elif rc == 1: # they asked to go back
- return INSTALL_BACK
-
- return INSTALL_OK