Gentoo Archives: gentoo-commits

From: Wiktor W Brodlo <wiktor@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/anaconda:master commit in: /, iw/
Date: Mon, 04 Jul 2011 16:05:28
Message-Id: 48a22c0559e39d4d0affed78130160a62d86d579.wiktor@gentoo
1 commit: 48a22c0559e39d4d0affed78130160a62d86d579
2 Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net>
3 AuthorDate: Mon Jul 4 16:04:23 2011 +0000
4 Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net>
5 CommitDate: Mon Jul 4 16:04:23 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=48a22c05
7
8 Yirst version of systools
9
10 ---
11 dispatch.py | 2 +-
12 gui.py | 1 +
13 installclass.py | 1 +
14 iw/systools_gui.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++
15 4 files changed, 50 insertions(+), 1 deletions(-)
16
17 diff --git a/dispatch.py b/dispatch.py
18 index ff469d9..ec7a447 100644
19 --- a/dispatch.py
20 +++ b/dispatch.py
21 @@ -110,7 +110,7 @@ installSteps = [
22 ("accounts", ),
23
24 # Installing Necessary System Tools
25 - # syslog and cron
26 + ("systools", ),
27
28 # Configuring the Bootloader
29 ("upgbootloader", ),
30
31 diff --git a/gui.py b/gui.py
32 index 0a5b161..6188182 100755
33 --- a/gui.py
34 +++ b/gui.py
35 @@ -93,6 +93,7 @@ stepToClass = {
36 "accounts" : ("account_gui", "AccountWindow"),
37
38 # Installing Necessary System Tools
39 + "systools" : ("systools_gui", "SystoolsWindow"),
40
41 # Configuring the Bootloader
42 "bootloader": ("bootloader_main_gui", "MainBootloaderWindow"),
43
44 diff --git a/installclass.py b/installclass.py
45 index fe39e3a..6efe31b 100644
46 --- a/installclass.py
47 +++ b/installclass.py
48 @@ -117,6 +117,7 @@ class BaseInstallClass(object):
49 "accounts",
50
51 # Installing Necessary System Tools
52 + "systools",
53
54 # Configuring the Bootloader
55 "bootloadersetup",
56
57 diff --git a/iw/systools_gui.py b/iw/systools_gui.py
58 new file mode 100644
59 index 0000000..f1e3773
60 --- /dev/null
61 +++ b/iw/systools_gui.py
62 @@ -0,0 +1,47 @@
63 +#
64 +# systools_gui.py: gui cron and system logger selection.
65 +#
66 +# Copyright (C) 2011 wiktor w brodlo
67 +# Copyright (C) 2011 Gentoo Foundation
68 +#
69 +# This program is free software; you can redistribute it and/or modify
70 +# it under the terms of the GNU General Public License as published by
71 +# the Free Software Foundation; either version 2 of the License, or
72 +# (at your option) any later version.
73 +#
74 +# This program is distributed in the hope that it will be useful,
75 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
76 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77 +# GNU General Public License for more details.
78 +#
79 +# You should have received a copy of the GNU General Public License
80 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
81 +#
82 +
83 +import string
84 +import gtk
85 +import gtk.glade
86 +import gtk.gdk
87 +import gobject
88 +import pango
89 +import sys
90 +import gui
91 +
92 +from iw_gui import *
93 +
94 +from constants import *
95 +import gettext
96 +_ = lambda x: gettext.ldgettext("anaconda", x)
97 +
98 +class SystoolWindow(InstallWindow):
99 + def getNext(self):
100 + return None
101 +
102 + def getScreen(self, anaconda):
103 + self.anaconda = anaconda
104 + self.intf = anaconda.intf
105 +
106 + (self.xml, self.align) = gui.getGladeWidget("systool.glade", "systool_align")
107 +
108 + return self.align
109 +