* 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
This commit is contained in:
Alex Roitman 2005-03-15 15:56:47 +00:00
parent d85c655092
commit c492d5a5ad
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2005-03-15 Alex Roitman <shura@gramps-project.org>
* 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 <rjt-gramps@thegrindstone.me.uk> 2005-03-15 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/Makefile.am : Added TreeTip.py to list of installed modules. * src/Makefile.am : Added TreeTip.py to list of installed modules.
* src/TreeTip.py: New module that implements tooltips on TreeView rows. * 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. * src/plugins/scratchpad.glade: New glade file for ScratchPad window.
2005-03-15 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-03-15 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GenericFilter.py (FullTextSearch): Added new filter thad provides * src/GenericFilter.py (FullTextSearch): Added new filter that provides
a full-text search thru (nearly) all attributes and linked objexts of a person. 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/gramps_main.py: add the new filter to the menu.
* src/RelLib.py (Event,Source): fix get_text_data_child_list() to correct * src/RelLib.py (Event,Source): fix get_text_data_child_list() to correct
attributes of the class; (Family): fix get_sourcref_child_list(). attributes of the class; (Family): fix get_sourcref_child_list().

View File

@ -1853,7 +1853,7 @@ class FullTextSearch(Rule):
return 'Full-text serach for ...' return 'Full-text serach for ...'
def description(self): 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): def category(self):
return _('General filters') return _('General filters')

View File

@ -1307,7 +1307,8 @@ class Family(PrimaryObject,SourceNote):
""" """
check_list = [self.lds_seal,self.note] check_list = [self.lds_seal,self.note]
add_list = [item for item in check_list if item] 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): 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. @return: Returns the list of child objects that may carry textual data.
@rtype: list @rtype: list
""" """
check_list = [] check_list = self.media_list
if self.note: if self.note:
check_list.append(self.note) check_list.append(self.note)
return check_list return check_list