rendered paste body[admin@chiba anaconda-custom]$ cat express.py
from installclass import BaseInstallClass
from rhpl.translate import N_, _
from constants import *
import os
import iutil
from fsset import *
class InstallClass(BaseInstallClass):
# name has underscore used for mnemonics, strip if you dont need it
id = "express"
name = N_("_Express Installation")
pixmap = "workstation-asterisk.png"
description = N_("Installs all needed software for a complete "
"Asterisk installation as well as "
"all the tools needed to build Asterisk. "
"Additionally, useful software such as "
"Cepstral, ODBC, and debugging tools "
"are included.")
pkgstext = N_("\tAsterisk\n"
"\tLigHTTPd\n"
"\tPostgreSQL, Cepstral, UnixODBC\n"
"\tNetworking Utilities\n"
"\tEditors\n"
"\tDevelopment Tools\n")
showLoginChoice = 0
sortPriority = 1
def setSteps(self, dispatch):
BaseInstallClass.setSteps(self, dispatch);
dispatch.skipStep("language")
dispatch.skipStep("keyboard")
dispatch.skipStep("partitionmethod")
# dispatch.skipStep("autopartitionexecute")
dispatch.skipStep("partition")
dispatch.skipStep("bootloader")
dispatch.skipStep("authentication")
dispatch.skipStep("accounts")
dispatch.skipStep("firewall")
dispatch.skipStep("desktopchoice", skip = 1)
dispatch.skipStep("package-selection", skip = 1)
def setGroupSelection(self, grpset, intf):
BaseInstallClass.__init__(self, grpset)
grpset.unselectAll()
#grpset.selectGroup("poundkey", asMeta=True)
grpset.selectGroup("everything")
def setInstallData(self, id):
BaseInstallClass.setInstallData(self, id)
BaseInstallClass.setDefaultPartitioning(self, id.partitions,
CLEARPART_TYPE_LINUX)
BaseInstallClass.setTimezoneInfo(self, id, "America/Chicago", 1)
id.firewall.enabled = 0
def __init__(self, expert):
BaseInstallClass.__init__(self, expert)