Пример #1
0
 def delete(self, confirmed):
     if not confirmed:
         return
     try:
         self["list"].removeService(self.service)
         Trashcan.delete(self.service.getPath())
     except Exception, e:
         print e
         self.session.open(MessageBox, _("Delete failed!"), MessageBox.TYPE_ERROR)
         return
Пример #2
0
 def delete(self, confirmed):
     if not confirmed:
         return
     try:
         self["list"].removeService(self.service)
         Trashcan.delete(self.service.getPath())
     except Exception, e:
         print e
         self.session.open(MessageBox, _("Delete failed!"), MessageBox.TYPE_ERROR)
         return
Пример #3
0
 def delete(self, confirmed):
     if not confirmed:
         return
     try:
         self["list"].removeService(self.service)
         Trashcan.delete(self.service.getPath())
     except Exception as e:
         print(str(e))
         self.session.open(MessageBox, _("Delete failed!"),
                           MessageBox.TYPE_ERROR)
         return
     self.delayTimer.start(0, 1)
Пример #4
0
 def delete(self, service):
     from Source.Trashcan import Trashcan
     if config.AdvancedMovieSelection.use_wastebasket.value:
         Trashcan.trash(service.getPath())
     else:
         Trashcan.delete(service.getPath())
Пример #5
0
 def delete(self, service):
     from Source.Trashcan import Trashcan
     if config.AdvancedMovieSelection.use_wastebasket.value:
         Trashcan.trash(service.getPath())
     else:
         Trashcan.delete(service.getPath())