~ubuntu-branches/ubuntu/utopic/system-config-kickstart/utopic

« back to all changes in this revision

Viewing changes to src/profileSystem.py

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-04-04 15:16:36 UTC
  • Revision ID: james.westby@ubuntu.com-20050404151636-gn0gdb1guqohkdcs
Tags: 2.5.20-0ubuntu10
* Add basic package group selection, just ubuntu-desktop and
  kubuntu-desktop for now (closes: #8467).
* Make "Install Everything" checkbox invisible.
* Replace gtk.FALSE and gtk.TRUE with False and True respectively.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import os
22
22
sys.path.append("/usr/share/system-config-language")
23
23
import language_backend
24
 
import rhpl.keyboard as keyboard
25
 
import rhpl.mouse as mouse
 
24
import mouse
26
25
 
27
26
class ProfileSystem:
28
27
    def __init__(self, kickstartData):
29
28
        self.kickstartData = kickstartData
30
29
        self.languageBackend = language_backend.LanguageBackend()
31
 
        self.mouse = mouse.Mouse(skipProbe = 1)
 
30
        self.mouse = mouse()
32
31
        
33
32
        self.getLang()
34
33
        self.getKeyboard()
49
48
        self.kickstartData.setLangSupport(langs)
50
49
 
51
50
    def getKeyboard(self):
52
 
        kbd = keyboard.Keyboard()
53
 
        kbd.read()
54
 
        self.kickstartData.setKeyboard([kbd.get()])
 
51
        # TODO
 
52
        #kbd = keyboard.Keyboard()
 
53
        #kbd.read()
 
54
        #self.kickstartData.setKeyboard([kbd.get()])
 
55
        self.kickstartData.setKeyboard("us")
55
56
 
56
57
    def getMouse(self):
57
58
        if os.access('/etc/sysconfig/mouse', os.F_OK):
95
96
            print "no access to /etc/shadow"
96
97
 
97
98
    def getPackages(self):
98
 
        fd = os.popen("/bin/rpm -qa --queryformat \"%{NAME}\n\"")
 
99
        fd = os.popen("dpkg-query --show --showformat '${package}\n'")
99
100
        packages = fd.readlines()
100
101
        fd.close
101
102
        packages.sort()