Module rhn_create_profile_gui
[hide private]
[frames] | no frames]

Source Code for Module rhn_create_profile_gui

 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   
39   
40 -class RhnCreateProfileWindow(RhnRegisterFirstbootGuiWindow, rhnregGui.CreateProfilePage):
41 #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 49
50 - def __init__(self):
55
56 - def updatePage(self):
58
59 - def _getVbox(self):
60 return self.createProfilePageVbox()
61
62 - def apply(self, *args):
63 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
73 74 childWindow = RhnCreateProfileWindow 75