[PATCH 1/2] When in simple mode show BIOS RAID sets in basic page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OEM's routinely ship systems with BIOS RAID enabled, so we should support
these in basic mode to.
---
 iw/filter_gui.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index 6145cd4..58d1acb 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -145,6 +145,10 @@ class Callbacks(object):
         return self.isMember(model.get_value(iter, OBJECT_COL)) and \
                model.get_value(iter, 1)
 
+class SimpleCallbacks(Callbacks):
+    def isMember(self, info):
+        return info and not isMultipath(info) and not isOther(info)
+
 class RAIDCallbacks(Callbacks):
     def isMember(self, info):
         return info and (isRAID(info) or isCCISS(info))
@@ -406,8 +410,8 @@ class FilterWindow(InstallWindow):
         self._cachedMPaths.extend(mpaths)
         self._cachedRaidDevices.extend(raids)
 
-    def _makeBasic(self):
-        np = NotebookPage(self.store, "basic", self.xml, Callbacks(self.xml))
+    def _makeBasic(self, callbacks):
+        np = NotebookPage(self.store, "basic", self.xml, callbacks(self.xml))
 
         np.ds.addColumn(_("Model"), MODEL_COL)
         np.ds.addColumn(_("Capacity"), CAPACITY_COL)
@@ -505,11 +509,11 @@ class FilterWindow(InstallWindow):
         self.store.set_sort_column_id(MODEL_COL, gtk.SORT_ASCENDING)
 
         if anaconda.id.simpleFilter:
-            self.pages = [self._makeBasic()]
+            self.pages = [self._makeBasic(SimpleCallbacks)]
             self.notebook.set_show_border(False)
             self.notebook.set_show_tabs(False)
         else:
-            self.pages = [self._makeBasic(), self._makeRAID(),
+            self.pages = [self._makeBasic(Callbacks), self._makeRAID(),
                           self._makeMPath(), self._makeOther(),
                           self._makeSearch()]
 
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux