add hddcount
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Wed, 9 Nov 2005 14:44:58 +0000 (14:44 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Wed, 9 Nov 2005 14:44:58 +0000 (14:44 +0000)
lib/python/Components/Harddisk.py

index a638977..b51d7a6 100644 (file)
@@ -169,6 +169,12 @@ class HarddiskManager:
                        if hddNum > 8:
                                break
 
+       def HDDCount(self):
+               cnt = 0
+               for hd in self.hdd:
+                       cnt = cnt + 1
+               return cnt      
+
        def HDDList(self):
                list = [ ]
                for hd in self.hdd: