diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index b2677a975..d3c400c0f 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -2,6 +2,7 @@ * src/PeopleModel.py (calculate_data): Fix invert of search result * src/Date.py (is_equal): Only compare text value for TEXTONLY dates. * src/GenericFilter.py: Add new filters to search for notes + * src/gramps_main.py: Add new filters 2005-07-05 Alex Roitman * src/system_filters.xml: Remove testing contents. diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 2f678d651..373d6ff01 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -1048,6 +1048,16 @@ class Gramps(GrampsDBCallback.GrampsDBCallback): all.add_rule(GenericFilter.HasTextMatchingRegexpOf([])) filter_list.append(all) + all = GenericFilter.GenericFilter() + all.set_name(_("People with notes")) + all.add_rule(GenericFilter.HasNote([])) + filter_list.append(all) + + all = GenericFilter.ParamFilter() + all.set_name(_("People with notes containing...")) + all.add_rule(GenericFilter.HasNoteMatchingSubstringOf([])) + filter_list.append(all) + self.filter_model = GenericFilter.FilterStore(filter_list) self.filter_list.set_model(self.filter_model) self.filter_list.set_active(self.filter_model.default_index())