Пример #1
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)
Пример #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)
Пример #3
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
Пример #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