Anaconda - progress_gui.py

Markus Eyrich me at byteaction.de
Wed Mar 21 16:08:58 UTC 2012


Oh well, thanks guys. The rnotes Code has worked in CentOS 5.x, i 
already did that there...

The code i refer to in the new progress_gui.py is that:

     def _getRnotes(self):
         langs = []
         pixmaps = []
         if (os.environ.has_key('LANG')):
             langs = language.expandLangs(os.environ['LANG'])
         langs.append('')

         pixmaps = []
         paths = ("/tmp/product/pixmaps/rnotes/%s/*.png",
                  "/usr/share/anaconda/pixmaps/rnotes/%s/*.png")
         for p in paths:
             for lang in langs:
                 path = p % lang
                 pixmaps = glob.glob(path)
                 if len(pixmaps) > 0:
                     break

         if len(pixmaps) > 0:
             files = pixmaps
         else:
             files = ["progress_first.png"]

         return files


     def getScreen (self, anaconda):
     self.intf = anaconda.intf
     if anaconda.dir == DISPATCH_BACK:
         self.intf.icw.prevClicked()
         return

         self.pixmaps = self._getRnotes()

It looked to me that creating a folder, let's say rnotes/de/ and putting 
..png's in there would do the trick, but it won't. Maybe i try to use the 
old progress_guy.py file or just try to use the old code snippet ..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20120321/2261c1b6/attachment.htm>


More information about the Kickstart-list mailing list