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)
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)
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)
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)
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)
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)
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)
def remove(self): self.removed = True if self.filename: self.remove_file(self.filename) DDBObject.remove(self)
def remove(self): if self.client is not None: self.client.cancel() self.client = None self.remove_icon_cache() DDBObject.remove(self)