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

def simple-restore-gnome::SRestoreGTK::_do_restore (   self,
  src,
  dst 
) [private]

Internal function to ask for confirmation and call the real restore library func

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

00391                                       :
            """ Internal function to ask for confirmation and call the real restore library func"""
            dialog = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format=_("Do you really want to restore backuped copy of '%s' to '%s' ?") % (src, dst))
            
            response = dialog.run()
            dialog.destroy()
            if response == gtk.RESPONSE_YES:
                  dialog = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_INFO, buttons=gtk.BUTTONS_NONE, message_format=_("Restoring ..."))
                  dialog.show()
                  tdir = self.target+"/"+self.get_active_text(self.widgets.get_widget("combobox1"))
                  r = srestore.SRestore()
                  r.restore( tdir, src, dst )
                  del r
                  dialog.destroy()

      def restore( self, *args):


Generated by  Doxygen 1.6.0   Back to index