import personal_desktop
from rhpl.translate import N_, _
import os

class InstallClass(personal_desktop.InstallClass):
    # name has underscore used for mnemonics, strip if you dont need it
    id = "workstation"
    name = N_("_Workstation")
    pixmap = "workstation.png"
    _description = N_("This option installs a graphical desktop "
		     "environment with tools for software "
		     "development and system administration.\n\n "
                     "NOTE: Choosing this setup option is not recommended "
                     "if this system is to be used at CERN.")

    pkgstext = N_("\tDesktop shell (GNOME)\n"
                  "\tOffice suite (OpenOffice.org)\n"
                  "\tWeb browser \n"
                  "\tEmail (Evolution)\n"
                  "\tInstant messaging\n"
                  "\tSound and video applications\n"
                  "\tGames\n"
                  "\tSoftware Development Tools\n"
                  "\tAdministration Tools\n")
    

    sortPriority = 2
    showLoginChoice = 0
    hidden = 1

    def setGroupSelection(self, anaconda):
        personal_desktop.InstallClass.setGroupSelection(self, anaconda.backend, intf)
        anaconda.backend.selectGroup("emacs")
        anaconda.backend.selectGroup("gnome-software-development")
	anaconda.backend.selectGroup("x-software-development")
        anaconda.backend.selectGroup("development-tools")
        anaconda.backend.selectGroup("compat-arch-support", asMeta = 1, missingOk = 1)
        anaconda.backend.selectGroup("compat-arch-development", asMeta = 1, missingOk = 1)
        
    def __init__(self, expert):
	personal_desktop.InstallClass.__init__(self, expert)
