Exemplo n.º 1
0
 def apply(self, *args):
     """Returns True to change the page (to the one set)."""
     if not self.start_page.startPageRegisterNow():
         dlg = rhnregGui.ConfirmQuitDialog()
         if not dlg.rc:
             self.parent.setPage("rhn_start_gui")
         else:
             self.parent.setPage("rhn_finish_gui")
     return True
Exemplo n.º 2
0
    def apply(self, interface, testing=False):
        if testing:
            return RESULT_SUCCESS

        if self.skip_registration:
            interface.moveToPage(pageNum=len(interface.moduleList))
            return RESULT_JUMP

        if not self.start_page.startPageRegisterNow():
            dlg = rhnregGui.ConfirmQuitDialog()
            if dlg.rc == 0:
                return RESULT_FAILURE
            else:
                interface.moveToPage(moduleTitle=_("Finish Updates Setup"))
                return RESULT_JUMP
        return RESULT_SUCCESS
Exemplo n.º 3
0
 def onMainWinCancel(self, mainWin):
     dialog = rhnregGui.ConfirmQuitDialog()
     if dialog.rc == 1:
         self.mainWin.set_current_page(self.pages['finishPageVbox'])
     else:
         return True
Exemplo n.º 4
0
 def onDruidCancel(self, dummy):
     dialog = rhnregGui.ConfirmQuitDialog()
     if dialog.rc == 1:
         self.druid.set_page(self.finishPage)
     else:
         return True