summaryrefslogtreecommitdiffstats
path: root/textw/bootdisk_text.py
blob: ede7b97f5eff9cda650d8d245c08e305ea39a6af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# bootdisk_text.py: text mode bootdisk creation
#
# Copyright 2000-2002 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 iutil
from rhpl.translate import _
from snack import *
from constants_text import *
from constants import *

class BootDiskWindow:
    def __call__(self, screen, dir, disp, fsset):
	buttons = [ _("Yes"), _("No") ]

	text = _("The boot diskette allows you to boot your %s "
                 "system from a floppy diskette.  A boot diskette "
		 "allows you to boot your system in the event your "
		 "bootloader configuration stops working.\n\nIt is "
		 "highly recommended you create a boot diskette.\n\n"
		 "Would you like to create a boot diskette?") % (productName,)

	rc = ButtonChoiceWindow(screen, _("Boot Diskette"), text,
                                buttons=buttons,
				help="bootdiskquery")

	if rc == string.lower (_("No")):
	    disp.skipStep("makebootdisk")
	else:
	    disp.skipStep("makebootdisk", skip=0)
	

	return INSTALL_OK