]>
Commit | Line | Data |
---|---|---|
f928b1c5 ER |
1 | from installclass import BaseInstallClass |
2 | from rhpl.translate import N_ | |
3 | from constants import * | |
4 | import os | |
5 | import iutil | |
6 | ||
7 | # custom installs are easy :-) | |
8 | class InstallClass(BaseInstallClass): | |
9 | # name has underscore used for mnemonics, strip if you dont need it | |
10 | id = "pld" | |
11 | name = N_("PLD Linux") | |
12 | pixmap = "custom.png" | |
13 | description = N_("Select this installation type to gain complete " | |
14 | "control over the installation process, including " | |
15 | "software package selection and partitioning.") | |
16 | sortPriority = 10000 | |
17 | showLoginChoice = 1 | |
18 | showMinimal = 1 | |
19 | ||
20 | tasks = [ | |
21 | (N_("Office and Productivity"), ["kde_graphics", "kde_koffice", "kde_multimedia", "gnome_office"]), | |
22 | (N_("Software Development"), ["devel", "devel_extras", "java", "kde_devel"]), | |
23 | (N_("Web server"), ["apache1_base", "apache_base"]) | |
24 | ] | |
25 | ||
26 | def setInstallData(self, id, intf = None): | |
27 | BaseInstallClass.setInstallData(self, id) | |
28 | BaseInstallClass.setDefaultPartitioning(self, id.partitions, | |
29 | CLEARPART_TYPE_LINUX) | |
30 | ||
31 | def setGroupSelection(self, backend, intf): | |
32 | grps = backend.getDefaultGroups() | |
33 | map(lambda x: backend.selectGroup(x), grps) | |
34 | ||
35 | def __init__(self, expert): | |
36 | BaseInstallClass.__init__(self, expert) |