Commits

Rodrigo Bistolfi committed 3c5ecba

Fix "Do Not Format" being passed as parameter bug

  • Participants
  • Parent commits 7325f32

Comments (0)

Files changed (1)

File vinstall/ui/gtk.py

                 else:
                     pass
             return True
-    
+
     def verify_mountpoint_selection(self, menu, row, event):
         """Processed after the mountpoint has been selected.
-        Provides methods select a default fs for / and swap. """
+        Provides methods select a default fs for / and swap.
+
+        """
         mpoint = menu.get_active().get_label()
         partition = self.store[row][0]
         if mpoint is "/":
-            self.filesystem_selected(row, partition, 
-                self.mountpoints.DEFAULT_ROOT_FS) 
+            self.filesystem_selected(row, partition,
+                self.mountpoints.DEFAULT_ROOT_FS)
         elif "swap" in mpoint:
             # automatically select 'swap' as the format for swap partitions
             self.filesystem_selected(row, partition, "swap")
         else:
-            self.filesystem_selected(row, partition, self.DNF)
-            
+            self.filesystem_selected(row, partition, None)
+
     def _read_partition_size(self, partition):
         """Return strip the partition size from the provided string.
-        
-        partition should be a media.Partition object"""
+        partition should be a media.Partition object
+
+        """
         size_gb, gb = partition.size().split()
         return float(size_gb)
 
         menu = gtk.Menu()
         partition = self.store[row][0]
         dnu = gtk.MenuItem(self.DNU)
-        #print partition," size= ", self._read_partition_size(partition)
         dnu.connect_object("activate", self.mountpoint_selected, row,
                 partition, None)
         dnu.show()
         menu.append(dnu)
-        
+
         psize = self._read_partition_size(self.str_to_partition_map[partition])
-        
+
         for i in self.mountpoints.available_mountpoints():
             item = gtk.MenuItem(i)
             item.connect_object("activate", self.mountpoint_selected,
         menu.connect("selection-done", self.verify_mountpoint_selection, row, event)
         menu.show()
         menu.popup(None, None, None, event.button, event.time)
-        
 
     def show_filesystem_menu(self, row, event):
         """Show a menu with filesystem options