summaryrefslogtreecommitdiffstats
path: root/iw/partition_gui.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-03-03 00:08:06 -0600
committerDavid Lehman <dlehman@redhat.com>2009-03-03 00:08:06 -0600
commit1fd89ae9fc8e2ca44430702f7d988112a8a8c080 (patch)
treec6cef69225c505d7f1ca26761461c27f502f7019 /iw/partition_gui.py
parent3579f254aa947d80b026d79482d1fd27f95ba180 (diff)
downloadanaconda-1fd89ae9fc8e2ca44430702f7d988112a8a8c080.tar.gz
anaconda-1fd89ae9fc8e2ca44430702f7d988112a8a8c080.tar.xz
anaconda-1fd89ae9fc8e2ca44430702f7d988112a8a8c080.zip
Several fixes to main partitioning gui.
- Fix indentation of block that sets up format indicators for partitions. - Fix check for partitionable devices in deleteCB. - Refresh UI even if dialogs return empty action list, so we pick up little things like a newly set mountpoint on a pre- existing device. - Don't pass storage instance to vgeditor since anaconda has it.
Diffstat (limited to 'iw/partition_gui.py')
-rw-r--r--iw/partition_gui.py21
1 files changed, 5 insertions, 16 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index de2a201ea..4466177ba 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -867,11 +867,10 @@ class PartitionWindow(InstallWindow):
else:
self.tree[iter]['Mount Point'] = ""
- if device.format.type == "luks" and \
- not device.format.exists:
- self.tree[iter]['Format'] = self.lock_pixbuf
- elif not format.exists:
- self.tree[iter]['Format'] = self.checkmark_pixbuf
+ if format and format.type == "luks" and not format.exists:
+ self.tree[iter]['Format'] = self.lock_pixbuf
+ elif format and not format.exists:
+ self.tree[iter]['Format'] = self.checkmark_pixbuf
if format and format.type:
self.tree[iter]['IsFormattable'] = device.format.formattable
@@ -967,7 +966,7 @@ class PartitionWindow(InstallWindow):
devices. This will need some work when that time comes.
"""
device = self.tree.getCurrentDevice()
- if getattr(device.partedDisk):
+ if hasattr(device, "partedDisk"):
if doDeleteDependentDevices(self.intf,
self.storage,
device):
@@ -1069,9 +1068,6 @@ class PartitionWindow(InstallWindow):
while 1:
actions = raideditor.run()
- if not actions:
- break
-
for action in actions:
# FIXME: this needs to handle exceptions
self.storage.devicetree.registerAction(action)
@@ -1100,9 +1096,6 @@ class PartitionWindow(InstallWindow):
while 1:
actions = parteditor.run()
- if not actions:
- break
-
for action in actions:
# XXX we should handle exceptions here
self.anaconda.id.storage.devicetree.registerAction(action)
@@ -1128,7 +1121,6 @@ class PartitionWindow(InstallWindow):
# we don't really need to pass in self.storage if we're passing
# self.anaconda already
vgeditor = lvm_dialog_gui.VolumeGroupEditor(self.anaconda,
- self.storage,
self.intf,
self.parent,
device,
@@ -1137,9 +1129,6 @@ class PartitionWindow(InstallWindow):
while True:
actions = vgeditor.run()
- if not actions:
- break
-
for action in actions:
# FIXME: handle exceptions
self.storage.devicetree.registerAction(action)