| Trees | Indices | Help |
|---|
|
|
1 # Copyright 2011 Red Hat, Inc.
2 # Copyright 2003 Brent Fox <bfox@redhat.com>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; version 2 of the License.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 #
17 # Authors:
18 # Miroslav Suchy <msuchy@redhat.com>
19
20 from up2date_client import rhnreg, rhnregGui, rhnserver
21
22 import gtk
23
24 import gettext
25 _ = lambda x: gettext.ldgettext("rhn-client-tools", x)
26
27 gtk.glade.bindtextdomain("rhn-client-tools")
28
29 from firstboot.module import Module
30 from firstboot.constants import RESULT_SUCCESS, RESULT_FAILURE, RESULT_JUMP
31
34 Module.__init__(self)
35 self.priority = 108.6
36 self.sidebarTitle = _("Select operating system release")
37 self.title = _("Select operating system release")
38 self.chooseChannel = FirstbootChooseChannelPage()
39
42
44 if testing:
45 return RESULT_SUCCESS
46
47 self.chooseChannel.chooseChannelPageApply()
48 return RESULT_SUCCESS
49
51 self.vbox = gtk.VBox(spacing=5)
52 self.vbox.pack_start(self.chooseChannel.chooseChannelPageVbox(), True, True)
53
55 # populate capability - needef for EUSsupported
56 s = rhnserver.RhnServer()
57 s.capabilities.validate()
58
59 # this populate zstream channels as side effect
60 self.chooseChannel.chooseChannelShouldBeShown()
61
62 self.chooseChannel.chooseChannelPagePrepare()
63
66
69
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Mar 4 07:37:49 2020 | http://epydoc.sourceforge.net |