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

Source Code for Module rhn_review_gui

 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  from up2date_client import rhnreg 
20  from up2date_client import rhnregGui 
21  from rhn_register_firstboot_gui_window import RhnRegisterFirstbootGuiWindow 
22   
23  import gtk 
24  from gtk import glade 
25  import gettext 
26  t = gettext.translation('rhn-client-tools', fallback=True) 
27  _ = t.ugettext 
28  gtk.glade.bindtextdomain("rhn-client-tools") 
29   
30   
31 -class RhnReviewWindow(RhnRegisterFirstbootGuiWindow, rhnregGui.ReviewSubscriptionPage):
32 runPriority=108.9 33 moduleName = _("Review Subscription") 34 windowTitle = moduleName 35 shortMessage = _("Connect to Red Hat Satellite") 36 needsparent = 1 37 needsnetwork = 1 38 noSidebar = True 39
40 - def __init__(self):
45
46 - def _getVbox(self):
47 return self.reviewSubscriptionPageVbox()
48
49 - def updatePage(self):
51
52 - def apply(self, *args):
53 """Returns None to stay on the same page. Anything else will cause 54 firstboot to advance but True is generally used. This is different from 55 the gnome druid in rhn_register. 56 57 """ 58 return True
59 60 61 childWindow = RhnReviewWindow 62