[PATCH 1/4] Add 'software' category to TUI summary hub

Samantha N. Bueno sbueno+anaconda at redhat.com
Fri May 17 21:32:20 UTC 2013


On Fri, May 17, 2013 at 01:09:29PM -0400, Chris Lumens wrote:
> > diff --git a/pyanaconda/ui/tui/hubs/summary.py b/pyanaconda/ui/tui/hubs/summary.py
> > index ebbfcfb..1ae5cca 100644
> > --- a/pyanaconda/ui/tui/hubs/summary.py
> > +++ b/pyanaconda/ui/tui/hubs/summary.py
> > @@ -28,7 +28,8 @@ import time
> >  
> >  class SummaryHub(TUIHub):
> >      title = _("Installation")
> > -    categories = ["source", "localization", "destination", "password"]
> > +    ## FIXME: this should be pulling data from somewhere, not just a static list
> > +    categories = ["source", "localization", "destination", "password", "software"]
> >  
> >      def setup(self, environment="anaconda"):
> >          TUIHub.setup(self, environment=environment)
> 
> In the GUI, categories are their own object that indicate which hub they
> appear on and the hub just goes and looks for all categories that match.
> There's no string anything.  I don't know why it is this way in the text
> UI, and you don't need to do anything about it now, but I would
> definitely prefer it if the two worked the same in this respect.

When I discovered 'categories' is just some static list in the TUI, I
was a little thrown. Definitely something to get fixed after F19. Good
to know how it's handled in the GUI; I'll keep that in mind when going
back to this.

Samantha


More information about the anaconda-patches mailing list