Example #1
0
    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
    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
Example #3
0
    def getNext(self):
        if self.anaconda.methodstr.startswith("cdrom://") and not self.anaconda.isKickstart:
	    rc = presentRequiredMediaMessage(self.anaconda)
	    if rc == 0:
		rc2 = self.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:
		    raise gui.StayOnScreen
            elif rc == 1: # they asked to go back
                self.anaconda.intf.icw.prevClicked()
                raise gui.StayOnScreen
                return DISPATCH_BACK
Example #4
0
    def getNext(self):
        if self.id.methodstr.startswith("cdrom://") and (
                self.id.instClass.name
                and self.id.instClass.name != "kickstart"):
            rc = presentRequiredMediaMessage(self.intf, self.id.grpset)

            if rc == 0:
                rc2 = self.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:
                    raise gui.StayOnScreen
Example #5
0
 def getNext(self):
     if self.anaconda.methodstr.startswith(
             "cdrom://") and not self.anaconda.isKickstart:
         rc = presentRequiredMediaMessage(self.anaconda)
         if rc == 0:
             rc2 = self.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:
                 raise gui.StayOnScreen
         elif rc == 1:  # they asked to go back
             self.anaconda.intf.icw.prevClicked()
             raise gui.StayOnScreen
             return DISPATCH_BACK
Example #6
0
    def __call__ (self, screen, intf, id):
        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 id.methodstr.startswith("cdrom://") and (id.instClass.name and id.instClass.name != "kickstart"):
	    rc = presentRequiredMediaMessage(intf, id.grpset)

	    if rc == 0:
		rc2 = 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
	
        return INSTALL_OK