def filter_by_collection(self, collection_id): from quick_filter import clear_filter clear_filter(self) self.populate_treeview(where={"collection_id": collection_id}) collection_name = self.db.Collection.get_by(collection_id=collection_id).name self.update_statusbar(_("Filter activated. Showing only movies from collection: %s") % collection_name)
def filter_by_volume(self, volume_id): from quick_filter import clear_filter clear_filter(self) self.populate_treeview(where={"volume_id": volume_id}) volume_name = self.db.Volume.get_by(volume_id=volume_id).name self.update_statusbar(_("Filter activated. Showing only movies from volume: %s") % volume_name)
def add_movie(self): quick_filter.clear_filter(self) next_number = gutils.find_next_available(self) initialize_add_dialog(self) self.am_number.set_text(str(next_number)) self.add_movie_window.show() self.active_plugin = ""
def filter_by_collection(self, collection_id): from quick_filter import clear_filter clear_filter(self, populate=False) self.populate_treeview(where={'collection_id': collection_id}) collection_name = self.db.Collection.query.filter_by( collection_id=collection_id).one().name self.update_statusbar( _("Filter activated. Showing only movies from collection: %s") % collection_name)
def filter_by_volume(self, volume_id): from quick_filter import clear_filter clear_filter(self, populate=False) self.populate_treeview(where={'volume_id': volume_id}) volume_name = self.db.Volume.query.filter_by( volume_id=volume_id).one().name self.update_statusbar( _("Filter activated. Showing only movies from volume: %s") % volume_name)