def _on_continue_clicked(self, window, user_data=None): # Don't display the betanag dialog if this is the final release. if not isFinal: dlg = self.builder.get_object("betaWarnDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.destroy() if rc != 1: ipmi_report(IPMI_ABORTED) sys.exit(0) if ( productName.startswith("Red Hat ") and is_unsupported_hw() and not self.data.unsupportedhardware.unsupported_hardware ): dlg = self.builder.get_object("unsupportedHardwareDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.destroy() if rc != 1: ipmi_report(IPMI_ABORTED) sys.exit(0) StandaloneSpoke._on_continue_clicked(self, window, user_data)
def _on_continue_clicked(self, window, user_data=None): # Don't display the betanag dialog if this is the final release or # when autostep has been requested as betanag breaks the autostep logic. if not isFinal and not self.data.autostep.seen: dlg = self.builder.get_object("betaWarnDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.hide() if rc != 1: ipmi_abort(scripts=self.data.scripts) sys.exit(0) # pylint: disable=no-member unsupported_status = is_unsupported_hw() if unsupported_status: # Fedora kickstart do not have unsupported_hardware option: # and not self.data.unsupportedhardware.unsupported_hardware: dlg = self.builder.get_object("unsupportedHardwareDialog") msg = self.builder.get_object("unsupportedHardwareDesc") msg.set_text(_(msg.get_text()) % {'features': unsupported_status}) with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.destroy() if rc != 1: ipmi_abort(scripts=self.data.scripts) sys.exit(0) StandaloneSpoke._on_continue_clicked(self, window, user_data)
def __init__(self, *args, **kwargs): StandaloneTUISpoke.__init__(self, *args, **kwargs) self._message = _("This hardware (or a combination thereof) is not " "supported by Red Hat. For more information on " "supported hardware, please refer to " "http://www.redhat.com/hardware.") # Does anything need to be displayed? self._unsupported = productName.startswith("Red Hat ") and \ is_unsupported_hw() and \ not self.data.unsupportedhardware.unsupported_hardware
def __init__(self, *args, **kwargs): StandaloneTUISpoke.__init__(self, *args, **kwargs) self._message = _("This hardware lacks features required by Qubes OS. " "Missing features: %(features)s. " "For more information on supported hardware, " "please refer to https://www.qubes-os.org/doc/system-requirements/") # Does anything need to be displayed? # pylint: disable=no-member # self._unsupported = not self.data.unsupportedhardware.unsupported_hardware \ # and is_unsupported_hw() self._unsupported = is_unsupported_hw()
def __init__(self, *args, **kwargs): StandaloneTUISpoke.__init__(self, *args, **kwargs) self._message = _("This hardware lack features required by Qubes OS. " "Missing features: %(features)s. " "For more information on supported hardware, " "please refer to https://www.qubes-os.org/system-requirements/") # Does anything need to be displayed? # pylint: disable=no-member # self._unsupported = not self.data.unsupportedhardware.unsupported_hardware \ # and is_unsupported_hw() self._unsupported = is_unsupported_hw()
def _on_continue_clicked(self, cb): # Don't display the betanag dialog if this is the final release. if not isFinal: dlg = self.builder.get_object("betaWarnDialog") with enlightbox(self.window, dlg): rc = dlg.run() dlg.destroy() if rc == 0: sys.exit(0) if productName.startswith("Red Hat Enterprise Linux") and \ is_unsupported_hw() and not self.data.unsupportedhardware.unsupported_hardware: dlg = self.builder.get_object("unsupportedHardwareDialog") with enlightbox(self.window, dlg): rc = dlg.run() dlg.destroy() if rc == 0: sys.exit(0) StandaloneSpoke._on_continue_clicked(self, cb)
def _on_continue_clicked(self, window, user_data=None): # Don't display the betanag dialog if this is the final release. if not isFinal: dlg = self.builder.get_object("betaWarnDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.destroy() if rc != 1: ipmi_report(IPMI_ABORTED) sys.exit(0) if productName.startswith("Red Hat ") and \ is_unsupported_hw() and not self.data.unsupportedhardware.unsupported_hardware: dlg = self.builder.get_object("unsupportedHardwareDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.destroy() if rc != 1: ipmi_report(IPMI_ABORTED) sys.exit(0) StandaloneSpoke._on_continue_clicked(self, window, user_data)
def _on_continue_clicked(self, window, user_data=None): # Don't display the betanag dialog if this is the final release or # when autostep has been requested as betanag breaks the autostep logic. if not isFinal and not self.data.autostep.seen: dlg = self.builder.get_object("betaWarnDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.hide() if rc != 1: ipmi_abort(scripts=self.data.scripts) sys.exit(0) # pylint: disable=no-member if productName.startswith("Red Hat ") and \ is_unsupported_hw() and not self.data.unsupportedhardware.unsupported_hardware: dlg = self.builder.get_object("unsupportedHardwareDialog") with self.main_window.enlightbox(dlg): rc = dlg.run() dlg.destroy() if rc != 1: ipmi_abort(scripts=self.data.scripts) sys.exit(0) StandaloneSpoke._on_continue_clicked(self, window, user_data)