[PATCH] Allow logging into multiple iscsi nodes at once (#975831).

Chris Lumens clumens at redhat.com
Tue Jul 23 18:38:01 UTC 2013


This just changes the radio buttons to checkmarks and uses the same credentials
for all checked.
---
 pyanaconda/ui/gui/spokes/advstorage/iscsi.glade | 3 +--
 pyanaconda/ui/gui/spokes/advstorage/iscsi.py    | 6 +-----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/advstorage/iscsi.glade b/pyanaconda/ui/gui/spokes/advstorage/iscsi.glade
index 0d63450..911d904 100644
--- a/pyanaconda/ui/gui/spokes/advstorage/iscsi.glade
+++ b/pyanaconda/ui/gui/spokes/advstorage/iscsi.glade
@@ -648,8 +648,8 @@
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="receives_default">False</property>
-                        <property name="xalign">0</property>
                         <property name="use_underline">True</property>
+                        <property name="xalign">0</property>
                         <property name="draw_indicator">True</property>
                       </object>
                       <packing>
@@ -711,7 +711,6 @@
                               <object class="GtkTreeViewColumn" id="nodeSelectedColumn">
                                 <child>
                                   <object class="GtkCellRendererToggle" id="nodeSelectedRenderer">
-                                    <property name="radio">True</property>
                                     <signal name="toggled" handler="on_row_toggled" swapped="no"/>
                                   </object>
                                   <attributes>
diff --git a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
index 095c388..a183c85 100644
--- a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
+++ b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
@@ -325,13 +325,9 @@ class ISCSIDialog(GUIObject):
         if not path:
             return
 
-        # First, mark all rows as unselected.
-        for row in self._store:
-            row[0] = False
-
         # Then, go back and mark just this row as selected.
         itr = self._store.get_iter(path)
-        self._store[itr][0] = True
+        self._store[itr][0] = not self._store[itr][0]
 
     def _login(self, credentials):
         for row in self._store:
-- 
1.8.1.2



More information about the anaconda-patches mailing list