def on_filters_changed(self, name_space): if name_space == 'Family': all_filter = GenericFamilyFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.Family.AllFamilies([])) self.generic.set_model(build_filter_model('Family', [all_filter])) self.generic.set_active(0)
def on_filters_changed(self, name_space): if name_space == 'Person': all_filter = GenericFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.Person.Everyone([])) self.generic.set_model(build_filter_model('Person', [all_filter])) self.generic.set_active(0)
def on_filters_changed(self, name_space): if name_space == 'Note': all_filter = GenericNoteFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.Note.AllNotes([])) self.generic.set_model(build_filter_model('Note', [all_filter])) self.generic.set_active(0)
def on_filters_changed(self, name_space): if name_space == 'Event': all_filter = GenericEventFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.Event.AllEvents([])) self.generic.set_model(build_filter_model('Event', [all_filter])) self.generic.set_active(0)
def on_filters_changed(self, name_space): if name_space == 'Citation': all_filter = GenericCitationFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.Citation.AllCitations([])) self.generic.set_model(build_filter_model('Citation', [all_filter])) self.generic.set_active(0)
def on_filters_changed(self, name_space): if name_space == 'MediaObject': all_filter = GenericMediaFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.MediaObject.AllMedia([])) self.generic.set_model( build_filter_model('MediaObject', [all_filter])) self.generic.set_active(0)
def on_filters_changed(self, name_space): if name_space == 'Repository': all_filter = GenericRepoFilter() all_filter.set_name(_("None")) all_filter.add_rule(Rules.Repository.AllRepos([])) self.generic.set_model( build_filter_model('Repository', [all_filter])) self.generic.set_active(0)