summaryrefslogtreecommitdiffstats
path: root/textw/confirm_text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
committerChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
commit9e1a444c46abcfc29c2e44ffd102fcc1eda6289e (patch)
treefc10e993fe6c8292fbd0cb57fb6ad4135b0a8fad /textw/confirm_text.py
parent2d90bc12dcc682a7f0ff68e599cbb81a34a0b4a3 (diff)
downloadanaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.gz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.xz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.zip
Make all UI steps use anaconda class. Add system-config-keyboard shim.
Diffstat (limited to 'textw/confirm_text.py')
-rw-r--r--textw/confirm_text.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/textw/confirm_text.py b/textw/confirm_text.py
index 20378b789..b28597915 100644
--- a/textw/confirm_text.py
+++ b/textw/confirm_text.py
@@ -18,7 +18,7 @@ from rhpl.translate import _
from image import presentRequiredMediaMessage
class BeginInstallWindow:
- def __call__ (self, screen, intf, id):
+ 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 "
@@ -28,11 +28,11 @@ class BeginInstallWindow:
if rc == string.lower (_("Back")):
return INSTALL_BACK
- if id.methodstr.startswith("cdrom://") and (id.instClass.name and id.instClass.name != "kickstart"):
- rc = presentRequiredMediaMessage(intf, id.grpset)
+ if anaconda.methodstr.startswith("cdrom://") and not anaconda.isKickstart:
+ rc = presentRequiredMediaMessage(anaconda.intf, anaconda.id.grpset)
if rc == 0:
- rc2 = intf.messageWindow(_("Reboot?"),
+ rc2 = anaconda.intf.messageWindow(_("Reboot?"),
_("The system will be rebooted now."),
type="custom", custom_icon="warning",
custom_buttons=[_("_Back"), _("_Reboot")])
@@ -46,7 +46,7 @@ class BeginInstallWindow:
return INSTALL_OK
class BeginUpgradeWindow:
- def __call__ (self, screen, intf, id) :
+ 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 "
@@ -56,11 +56,11 @@ class BeginUpgradeWindow:
if rc == string.lower (_("Back")):
return INSTALL_BACK
- if id.methodstr.startswith("cdrom://") and (id.instClass.name and id.instClass.name != "kickstart"):
- rc = presentRequiredMediaMessage(intf, id.grpset)
+ if anaconda.methodstr.startswith("cdrom://") and not anaconda.isKickstart:
+ rc = presentRequiredMediaMessage(anaconda.intf, anaconda.id.grpset)
if rc == 0:
- rc2 = intf.messageWindow(_("Reboot?"),
+ rc2 = anaconda.intf.messageWindow(_("Reboot?"),
_("The system will be rebooted now."),
type="custom", custom_icon="warning",
custom_buttons=[_("_Back"), _("_Reboot")])