Exemplo n.º 1
0
 def onStartPagePrepare(self, page, dummy, manualPrepare=False):
     if not manualPrepare:
         self.startPage.emit_stop_by_name("prepare")
     self.druid.set_buttons_sensitive(False, True, True, False)
     if rhnreg.rhsm_registered() and not self.rhsm_already_registered_already_shown:
         # Dialog constructor returns when dialog closes
         dialog = rhnregGui.AlreadyRegisteredSubscriptionManagerDialog()
         if dialog.rc == 0:
             sys.exit(0)
         self.rhsm_already_registered_already_shown = True
     if rhnreg.registered() and not self.already_registered_already_shown:
         # Dialog constructor returns when dialog closes
         dialog = rhnregGui.AlreadyRegisteredDialog()
         if dialog.rc == 0:
             sys.exit(0)
         self.already_registered_already_shown = True
Exemplo n.º 2
0
    def __init__(self, screen, tui):

        if not rhnreg.rhsm_registered() or tui.test:
            raise WindowSkipException()

        self.screen = screen
        self.tui = tui
        size = snack._snack.size()

        toplevel = snack.GridForm(self.screen,
                                  SYSTEM_ALREADY_SETUP.encode('utf-8'), 1, 2)
        self.bb = snack.ButtonBar(self.screen,
                                  [(YES_CONT.encode('utf-8'), "next"),
                                   (NO_CANCEL.encode('utf-8'), "exit")])
        toplevel.add(self.bb, 0, 1, growx=1)

        tb = snack.Textbox(size[0] - 30, size[1] - 20,
                           (WARNING + "\n\n" + RHSM_SYSTEM_ALREADY_REGISTERED +
                            "\n\n" + SYSTEM_ALREADY_REGISTERED_CONT +
                            "\n").encode('utf-8'), 1, 1)
        toplevel.add(tb, 0, 0, padding=(0, 0, 0, 1))

        self.g = toplevel
Exemplo n.º 3
0
    def __init__(self, screen, tui):

        if not rhnreg.rhsm_registered() or tui.test:
            raise WindowSkipException()

        self.screen = screen
        self.tui = tui
        size = snack._snack.size()

        toplevel = snack.GridForm(self.screen, SYSTEM_ALREADY_SETUP.encode('utf-8'), 1, 2)
        self.bb = snack.ButtonBar(self.screen,
                                  [(YES_CONT.encode('utf-8'), "next"),
                                   (NO_CANCEL.encode('utf-8'), "exit")])
        toplevel.add(self.bb, 0, 1, growx = 1)

        tb = snack.Textbox(size[0]-30, size[1]-20,
                            (WARNING + "\n\n"
                            + RHSM_SYSTEM_ALREADY_REGISTERED + "\n\n"
                            + SYSTEM_ALREADY_REGISTERED_CONT + "\n").encode('utf-8'),
                            1, 1)
        toplevel.add(tb, 0, 0, padding = (0, 0, 0, 1))

        self.g = toplevel
Exemplo n.º 4
0
def sam_check():
    import rhnreg
    if rhnreg.rhsm_registered():
        return True
    return False
Exemplo n.º 5
0
def sam_check():
    if system.SystemRelease().is_redhat():
        import rhnreg
        if rhnreg.rhsm_registered():
            return True
    return False
Exemplo n.º 6
0
def sam_check():
    import rhnreg
    if rhnreg.rhsm_registered():
        return True
    return False