From f47d06efc863945909f6095eae5d88c755168fd6 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Tue, 30 Aug 2005 23:37:28 +0000 Subject: [PATCH] removed debug and add ide-host --- lib/python/Components/Harddisk.py | 12 +++++++++--- lib/python/Screens/HarddiskSetup.py | 3 +-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index dcf76570..a6389770 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -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") diff --git a/lib/python/Screens/HarddiskSetup.py b/lib/python/Screens/HarddiskSetup.py index 00158288..b644fd99 100644 --- a/lib/python/Screens/HarddiskSetup.py +++ b/lib/python/Screens/HarddiskSetup.py @@ -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 -- 2.30.2