Example #1
0
 def load(self, config):
     for path in config.getPaths():
         # Comment note above abote UTF-8 stored strings in the UI
         if fwbackups.CheckPermsRead(path, mustExist=True):
             self.liststore.append([gtk.STOCK_YES, path.encode('utf-8')])
         else:
             self.liststore.append([gtk.STOCK_NO, path.encode('utf-8')])
Example #2
0
 def load(self, config):
   for path in config.getPaths():
     # Comment note above abote UTF-8 stored strings in the UI
     if fwbackups.CheckPermsRead(path, mustExist=True):
       self.liststore.append([gtk.STOCK_YES, path.encode('utf-8')])
     else:
       self.liststore.append([gtk.STOCK_NO, path.encode('utf-8')])
Example #3
0
 def parsePaths(self, config):
   """Get the list of paths in the configuration file. Returns a list of paths to backup"""
   paths = []
   for path in config.getPaths():
     paths.append(path)
   return paths