From c492d5a5ad6bcef1f992c08b5c0951314643a1ac Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 15 Mar 2005 15:56:47 +0000 Subject: [PATCH] * src/RelLib.py (Source.get_text_data_child_list, Family.get_text_data_child_list): Add missing lists. * src/GenericFilter.py (FullTextSearch): Correct description. * src/GenericFilter.py (FullTextSearch): Added new filter that provides a full-text search thru (nearly) all attributes and linked objects of a person. svn: r4185 --- gramps2/ChangeLog | 9 +++++++-- gramps2/src/GenericFilter.py | 2 +- gramps2/src/RelLib.py | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 643d95b46..cf1e2349a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,8 @@ +2005-03-15 Alex Roitman + * src/RelLib.py (Source.get_text_data_child_list, + Family.get_text_data_child_list): Add missing lists. + * src/GenericFilter.py (FullTextSearch): Correct description. + 2005-03-15 Richard Taylor * src/Makefile.am : Added TreeTip.py to list of installed modules. * src/TreeTip.py: New module that implements tooltips on TreeView rows. @@ -7,8 +12,8 @@ * src/plugins/scratchpad.glade: New glade file for ScratchPad window. 2005-03-15 Martin Hawlisch - * src/GenericFilter.py (FullTextSearch): Added new filter thad provides - a full-text search thru (nearly) all attributes and linked objexts of a person. + * src/GenericFilter.py (FullTextSearch): Added new filter that provides + a full-text search thru (nearly) all attributes and linked objects 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(). diff --git a/gramps2/src/GenericFilter.py b/gramps2/src/GenericFilter.py index 8c8b209c5..f65832a46 100644 --- a/gramps2/src/GenericFilter.py +++ b/gramps2/src/GenericFilter.py @@ -1853,7 +1853,7 @@ class FullTextSearch(Rule): return 'Full-text serach for ...' def description(self): - return _("Does a full-text search in all text values of the verson and all linked events and families") + return _("Matches persons whose records contain text matching a substring") def category(self): return _('General filters') diff --git a/gramps2/src/RelLib.py b/gramps2/src/RelLib.py index aaf3cf1bb..8fab59d69 100644 --- a/gramps2/src/RelLib.py +++ b/gramps2/src/RelLib.py @@ -1307,7 +1307,8 @@ class Family(PrimaryObject,SourceNote): """ check_list = [self.lds_seal,self.note] add_list = [item for item in check_list if item] - return self.media_list + self.attribute_list + add_list + return self.media_list + self.attribute_list + \ + self.source_list + add_list def get_sourcref_child_list(self): """ @@ -2501,7 +2502,7 @@ class Source(PrimaryObject): @return: Returns the list of child objects that may carry textual data. @rtype: list """ - check_list = [] + check_list = self.media_list if self.note: check_list.append(self.note) return check_list