Logo Search packages:      
Sourcecode: sbackup version File versions  Download package

def simple-restore-gnome::SRestoreGTK::show_dir (   self,
  path,
  rootiter 
)

Worker function - adds all files/directories from the filez list
to the treestore at the rootiter.

Definition at line 315 of file simple-restore-gnome.py.

00315                                         :
            """
            Worker function - adds all files/directories from the filez list
            to the treestore at the rootiter.
            """
            dummy = self.treestore.iter_children(rootiter)
            
            self.good = True

            base = self.get_active_text(self.widgets.get_widget("combobox1"))
            list2 = []
            list3 = []
            
            escapedFullPath = re.escape(path)+"/([^/]+/?)"
            for item in self.vtree[base]:
                  m = re.match( escapedFullPath, item )
                  if m and not list2.count(m.group(1)) and not list3.count(m.group(1)[:-1]):
                        if m.group(1)[-1] == "/":
                              if list2.count(m.group(1)[:-1]):
                                    list2.remove(m.group(1)[:-1])
                              list3.append(m.group(1)[:-1])
                        else:
                              list2.append( m.group(1) )
            for d in list3:
                  iter = self.treestore.append( rootiter, [d] )
                  self.treestore.append( iter, [_("Loading ...")] )
            for f in list2:
                  self.treestore.append( rootiter, [f] )
            
            self.treestore.remove( dummy )
            
            
      def get_active_text(self, combobox):


Generated by  Doxygen 1.6.0   Back to index