예제 #1
0
파일: downloader.py 프로젝트: geoffl/miro
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     rates = self._get_rates()
     app.download_state_manager.total_down_rate -= rates[0]
     app.download_state_manager.total_up_rate -= rates[1]
     self.stop(self.delete_files)
     DDBObject.remove(self)
예제 #2
0
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     rates = self._get_rates()
     app.download_state_manager.total_down_rate -= rates[0]
     app.download_state_manager.total_up_rate -= rates[1]
     self.stop(self.delete_files)
     DDBObject.remove(self)
예제 #3
0
파일: downloader.py 프로젝트: cool-RR/Miro
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     global total_down_rate
     global total_up_rate
     rates = self._get_rates()
     total_down_rate -= rates[0]
     total_up_rate -= rates[1]
     self.stop(self.delete_files)
     DDBObject.remove(self)
예제 #4
0
파일: downloader.py 프로젝트: kmshi/miro
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     global total_down_rate
     global total_up_rate
     rates = self._get_rates()
     total_down_rate -= rates[0]
     total_up_rate -= rates[1]
     self.stop(self.delete_files)
     DDBObject.remove(self)
예제 #5
0
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     rates = self._get_rates()
     app.download_state_manager.total_down_rate -= rates[0]
     app.download_state_manager.total_up_rate -= rates[1]
     if self.is_finished():
         app.local_metadata_manager.remove_file(self.get_filename())
     self.stop(self.delete_files)
     DDBObject.remove(self)
예제 #6
0
파일: folder.py 프로젝트: cool-RR/Miro
 def remove(self, move_items_to=None):
     """Removes this folder passing ``move_items_to`` to
     :func:miro.feed.Feed.remove.
     """
     children = list(self.get_children_view())
     for child in children:
         if child.is_watched_folder():
             child.set_visible(False) # just hide watched folders
             child.set_folder(None)
         else:
             child.remove(move_items_to)
     DDBObject.remove(self)
예제 #7
0
파일: folder.py 프로젝트: zjmmjzzjm/miro
 def remove(self, move_items_to=None):
     """Removes this folder passing ``move_items_to`` to
     :func:miro.feed.Feed.remove.
     """
     children = list(self.get_children_view())
     for child in children:
         if child.is_watched_folder():
             child.set_visible(False)  # just hide watched folders
             child.set_folder(None)
         else:
             child.remove(move_items_to)
     DDBObject.remove(self)
예제 #8
0
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     rates = self._get_rates()
     if rates[0] is not None:
         app.download_state_manager.total_down_rate -= rates[0]
     if rates[1] is not None:
         app.download_state_manager.total_up_rate -= rates[1]
     if self.is_finished():
         app.local_metadata_manager.remove_file(self.get_filename())
     self.stop(self.delete_files)
     DDBObject.remove(self)
예제 #9
0
 def remove(self):
     """Removes downloader from the database and deletes the file.
     """
     self.before_changing_rates()
     if self.is_finished():
         if self.filename is not None:
             app.local_metadata_manager.remove_file(self.get_filename())
         else:
             logging.warn("RemoteDownloader.remove: filename is None, "
                          "but state is %s", self.get_state())
     self.stop(self.delete_files)
     self.after_changing_rates()
     DDBObject.remove(self)
예제 #10
0
파일: folder.py 프로젝트: cool-RR/Miro
 def remove(self, move_items_to=None):
     children = list(self.get_children_view())
     for child in children:
         child.remove(move_items_to)
     DDBObject.remove(self)
예제 #11
0
 def remove(self):
     self.removed = True
     if self.filename:
         self.remove_file(self.filename)
     DDBObject.remove(self)
예제 #12
0
파일: guide.py 프로젝트: nxmirrors/miro
 def remove(self):
     if self.client is not None:
         self.client.cancel()
         self.client = None
     self.remove_icon_cache()
     DDBObject.remove(self)
예제 #13
0
파일: folder.py 프로젝트: zjmmjzzjm/miro
 def remove(self, move_items_to=None):
     children = list(self.get_children_view())
     for child in children:
         child.remove(move_items_to)
     DDBObject.remove(self)
예제 #14
0
 def remove(self):
     self.removed = True
     if self.filename:
         self.remove_file(self.filename)
     DDBObject.remove(self)
예제 #15
0
파일: guide.py 프로젝트: zjmmjzzjm/miro
 def remove(self):
     if self.client is not None:
         self.client.cancel()
         self.client = None
     self.remove_icon_cache()
     DDBObject.remove(self)