Trees | Indices | Help |
---|
|
1 # Copyright 2006 Red Hat, Inc. 2 # 3 # This program is free software; you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation; version 2 of the License. 6 # 7 # This program is distributed in the hope that it will be useful, 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # GNU General Public License for more details. 11 # 12 # You should have received a copy of the GNU General Public License 13 # along with this program; if not, write to the Free Software 14 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15 # 16 # Authors: 17 # Daniel Benamy <dbenamy@redhat.com> 18 19 import os 20 from up2date_client import rhnreg 21 from up2date_client import rhnregGui 22 from up2date_client import up2dateErrors 23 from rhn_register_firstboot_gui_window import RhnRegisterFirstbootGuiWindow 24 25 import gtk 26 from gtk import glade 27 import gettext 28 t = gettext.translation('rhn-client-tools', fallback=True) 29 _ = t.ugettext 30 31 gtk.glade.bindtextdomain("rhn-client-tools") 32 3335 runPriority=106.5 36 moduleName = _("Choose Server") 37 windowTitle = moduleName 38 shortMessage = _("Choose a Red Hat Satellite server") 39 needsparent = 1 40 needsnetwork = 1 41 noSidebar = True 4266 67 68 childWindow = RhnChooseServerWindow 6944 RhnRegisterFirstbootGuiWindow.__init__(self) 45 rhnregGui.ChooseServerPage.__init__(self) 46 if rhnreg.registered(): 47 self.skipme = True4850 return self.chooseServerPageVbox()5153 self.chooseServerPagePrepare()5456 """Returns True to change the page (to the one set).""" 57 try: 58 if self.chooseServerPageApply() is False: 59 self.parent.setPage("rhn_login_gui") 60 return True 61 else: 62 return None 63 except up2dateErrors.SSLCertificateVerifyFailedError: 64 self.parent.setPage("rhn_provide_certificate_gui") 65 return True
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Mar 4 07:37:45 2020 | http://epydoc.sourceforge.net |