[PATCH 2/4] Replace the RAID level checkboxes with a single combo box.

Chris Lumens clumens at redhat.com
Wed Jan 23 14:42:22 UTC 2013


> >  pyanaconda/ui/gui/spokes/custom.glade | 559 ++++++----------------------------
> >  pyanaconda/ui/gui/spokes/custom.py    | 208 +++----------
> >  2 files changed, 146 insertions(+), 621 deletions(-)
> >
> > +
> > +        # Set a default RAID level in the combo.
> > +        i = 0
> > +        for row in raid_combo.get_model():
> > +            if row[0].startswith(raid_level.upper()):
> > +                raid_combo.set_active(i)
> > +                break
> > +
> > +            i += 1
> You can use 'for (i, row) in enumerate(raid_combo.get_model())' here.

Oh, that's a good tip.  I'll work it in.  There's probably other places
this can be done too.

- Chris


More information about the anaconda-patches mailing list