* src/GenericFilter.py (FullTextSearch): Added new filter thad provides

a full-text search thru (nearly) all attributes and linked objexts of a person.
* src/gramps_main.py: add the new filter to the menu.
* src/RelLib.py (Event,Source): fix get_text_data_child_list() to correct
attributes of the class; (Family): fix get_sourcref_child_list().


svn: r4183
This commit is contained in:
Martin Hawlisch
2005-03-15 12:56:14 +00:00
parent d2e476e956
commit 840c8ec4a9
4 changed files with 122 additions and 4 deletions

View File

@ -947,6 +947,11 @@ class Gramps:
all.add_rule(GenericFilter.IsWitness([]))
filter_list.append(all)
all = GenericFilter.ParamFilter()
all.set_name(_("Full-text search ..."))
all.add_rule(GenericFilter.FullTextSearch([]))
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())