- self["hdd"] = Label(_("Detected HDD:"))
- hdd = Harddisk(0)
- if hdd.model() != "":
- self["hddA"] = Label(_("%s\n(%s, %d MB free)") % (hdd.model(), hdd.capacity(),hdd.free()))
- else:
- self["hddA"] = Label(_("none"))
+ self["HDDHeader"] = StaticText(_("Detected HDD:"))
+ hddlist = harddiskmanager.HDDList()
+ hdd = hddlist and hddlist[0][1] or None
+ if hdd is not None and hdd.model() != "":
+ self["hddA"] = StaticText(_("%s\n(%s, %d MB free)") % (hdd.model(), hdd.capacity(),hdd.free()))
+ else:
+ self["hddA"] = StaticText(_("none"))