removed debug and add ide-host
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 30 Aug 2005 23:37:28 +0000 (23:37 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 30 Aug 2005 23:37:28 +0000 (23:37 +0000)
lib/python/Components/Harddisk.py
lib/python/Screens/HarddiskSetup.py

index dcf7657058de9bfff572629cd8540e7e2729a94d..a638977061674e19ef18aa7fde4754fbe4c1f7b7 100644 (file)
@@ -25,11 +25,17 @@ class Harddisk:
                return self.index
 
        def bus(self):
-               #TODO: add the host
+               ret = ""
+
+               if self.index & 2:
+                       ret = "External (CF) - "
+               else:
+                       ret = "Internal - "
+               
                if self.index & 1:
-                       return "Slave"
+                       return ret + "Slave"
                else:
-                       return "Master"
+                       return ret + "Master"
 
        def capacity(self):
                procfile = tryOpen(self.prochdx + "capacity")
index 00158288913d11cf698f5e350ef5e7de395b7ef5..b644fd9974767b08903b5e98b4154100be8a9a5e 100644 (file)
@@ -27,6 +27,7 @@ class HarddiskSetup(Screen):
                })
 
        def hddInitialize(self):
+               #some protection for the exhibition (IFA 2005)
                if self.hdd.getIndex() == 2:            #CF
                        print "not a good idea!"
                        self.session.open(MessageBox, "not a good idea - this will kill our rootfs!")
@@ -49,5 +50,3 @@ class HarddiskSelection(Screen):
        def okbuttonClick(self):
                selection = self["hddlist"].getCurrent()
                self.session.open(HarddiskSetup, selection[1])
-               print "ok"
-               pass