def restoreAll(self):
     try:
         print "Start restoring all movies"
         for x in self.list.list[:]:
             service = x[0]
             self["list"].removeService(service)
             Trashcan.restore(service.getPath())
     except Exception, e:
         print e
         self.session.open(MessageBox, _("Restore failed!"), MessageBox.TYPE_ERROR)
Beispiel #2
0
 def restoreAll(self):
     try:
         print "Start restoring all movies"
         for x in self.list.list[:]:
             service = x[0]
             self["list"].removeService(service)
             Trashcan.restore(service.getPath())
     except Exception, e:
         print e
         self.session.open(MessageBox, _("Restore failed!"),
                           MessageBox.TYPE_ERROR)
 def restore(self):
     try:
         service = self.getCurrent() 
         if not service:
             return
         self["list"].removeService(service)
         Trashcan.restore(service.getPath())
     except Exception, e:
         print e
         self.session.open(MessageBox, _("Restore failed!"), MessageBox.TYPE_ERROR)
         return
Beispiel #4
0
 def restore(self):
     try:
         service = self.getCurrent()
         if not service:
             return
         self["list"].removeService(service)
         Trashcan.restore(service.getPath())
     except Exception, e:
         print e
         self.session.open(MessageBox, _("Restore failed!"),
                           MessageBox.TYPE_ERROR)
         return