add openWithCallback and return values
[enigma2.git] / lib / python / Screens / HarddiskSetup.py
index 00158288913d11cf698f5e350ef5e7de395b7ef5..3d605924a0b2fc85f155fa2ebb68096ee7a68650 100644 (file)
@@ -27,12 +27,13 @@ class HarddiskSetup(Screen):
                })
 
        def hddInitialize(self):
-               if self.hdd.getIndex() == 2:            #CF
-                       print "not a good idea!"
-                       self.session.open(MessageBox, "not a good idea - this will kill our rootfs!")
-               else:   
-                       print "this will start the initialize now!"
-                       #self.hdd.initialize()
+               #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!")
+               #else:  
+               print "this will start the initialize now!"
+               self.hdd.initialize()
 
 class HarddiskSelection(Screen):
        def __init__(self, session):
@@ -49,5 +50,3 @@ class HarddiskSelection(Screen):
        def okbuttonClick(self):
                selection = self["hddlist"].getCurrent()
                self.session.open(HarddiskSetup, selection[1])
-               print "ok"
-               pass