diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-01-31 15:56:06 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-01-31 15:56:06 +0100 |
commit | 33cb3ec95c4bd6ca0af10b137e3c1061a148d787 (patch) | |
tree | 1191f045eec5c3c7a8e14ade65e549d9b58a302d | |
parent | 20c4d39253776851d2a68fb8f8205db6de5a8eb1 (diff) | |
download | anaconda-33cb3ec95c4bd6ca0af10b137e3c1061a148d787.tar.gz anaconda-33cb3ec95c4bd6ca0af10b137e3c1061a148d787.tar.xz anaconda-33cb3ec95c4bd6ca0af10b137e3c1061a148d787.zip |
When editing the raid partitions show raid memebers. (#352721)
-rw-r--r-- | iw/raid_dialog_gui.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py index 899195dc9..b5465c5fc 100644 --- a/iw/raid_dialog_gui.py +++ b/iw/raid_dialog_gui.py @@ -52,13 +52,24 @@ class RaidEditor: sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) sw.set_shadow_type(gtk.SHADOW_IN) + tempDevList = [] + if not self.isNew: + # We need this list if we are editing. + for id in reqraidpart: + tempDevList.append(self.partitions.getRequestByID(id).device) + partrow = 0 for part, size, used in allraidparts: partname = "%s" % part partsize = "%8.0f MB" % size - if preexist == 0: + if self.isNew: partlist.append_row((partname, partsize), False) + else: + # Ask self.partitions what devices to list as selected. + if part in tempDevList: + #list the partition and put it as selected + partlist.append_row((partname, partsize), True) return (partlist, sw) |