* src/gramps_main.py: Add new filters
svn: r4904
This commit is contained in:
parent
47922e7be9
commit
d45d5a0afe
@ -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 <shura@gramps-project.org>
|
||||
* src/system_filters.xml: Remove testing contents.
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user