Trees | Indices | Help |
---|
|
1 # rhn_register.py - GUI front end code for firstboot screen resolution 2 # 3 # Copyright 2003 Red Hat, Inc. 4 # Copyright 2003 Brent Fox <bfox@redhat.com> 5 # 6 # This program is free software; you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation; version 2 of the License. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with this program; if not, write to the Free Software 17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 # 19 20 import gtk 21 import gobject 22 import os 23 import functions 24 25 import gnome, gnome.ui 26 from gtk import glade 27 28 from rhn_register_firstboot_gui_window import RhnRegisterFirstbootGuiWindow 29 from up2date_client import rhnreg 30 from up2date_client import rhnregGui 31 from up2date_client import up2dateErrors 32 from up2date_client import messageWindow 33 34 import gettext 35 t = gettext.translation('rhn-client-tools', fallback=True) 36 _ = t.ugettext 37 gtk.glade.bindtextdomain("rhn-client-tools") 38 3941 #You must specify a runPriority for the order in which you wish your module to run 42 runPriority = 108.7 43 moduleName = _("Create Profile") 44 windowTitle = moduleName 45 shortMessage = _("Connect to Red Hat Satellite") 46 needsparent = 1 47 needsnetwork = 1 48 noSidebar = True 4973 74 childWindow = RhnCreateProfileWindow 7551 RhnRegisterFirstbootGuiWindow.__init__(self) 52 rhnregGui.CreateProfilePage.__init__(self) 53 if rhnreg.registered(): 54 self.skipme = True5557 self.createProfilePagePrepare()5860 return self.createProfilePageVbox()6163 64 ret = self.createProfilePageVerify() 65 if ret: 66 return None 67 68 ret = self.createProfilePageApply() 69 if ret: 70 return None 71 72 return True
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Mar 4 07:37:52 2020 | http://epydoc.sourceforge.net |