Re: Anaconda - progress_gui.py

Markus Eyrich <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
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 ..

_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.