Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
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 = ""
Beispiel #4
0
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)
Beispiel #5
0
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)