* src/filters/MatchSndEx2.py: Make consistent use of ...
* src/filters/RegExMatch.py: Likewise. * src/filters/SubString.py: Likewise. svn: r2188
This commit is contained in:
parent
a59ec071e8
commit
3ae9a34c1a
@ -7,6 +7,9 @@
|
|||||||
* src/gramps_main.py: Typo.
|
* src/gramps_main.py: Typo.
|
||||||
* src/PlaceView.py: Likewise.
|
* src/PlaceView.py: Likewise.
|
||||||
* src/GenericFilter.py: Likewise.
|
* src/GenericFilter.py: Likewise.
|
||||||
|
* src/filters/MatchSndEx2.py: Make consistent use of ...
|
||||||
|
* src/filters/RegExMatch.py: Likewise.
|
||||||
|
* src/filters/SubString.py: Likewise.
|
||||||
|
|
||||||
2003-09-29 Don Allingham <dallingham@users.sourceforge.net>
|
2003-09-29 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/gramps_main.py: fixed delete person problem.
|
* src/gramps_main.py: fixed delete person problem.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000 Donald N. Allingham
|
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -18,14 +18,14 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
"Names with the specified SoundEx code"
|
"Names with SoundEx code of ..."
|
||||||
|
|
||||||
import Filter
|
import Filter
|
||||||
import soundex
|
import soundex
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
class MatchSndEx2(Filter.Filter):
|
class MatchSndEx2(Filter.Filter):
|
||||||
"Names with the specified SoundEx code"
|
"Names with SoundEx code of ..."
|
||||||
|
|
||||||
def match(self,person):
|
def match(self,person):
|
||||||
return self.text == soundex.soundex(person.getPrimaryName().getSurname())
|
return self.text == soundex.soundex(person.getPrimaryName().getSurname())
|
||||||
@ -36,6 +36,6 @@ class MatchSndEx2(Filter.Filter):
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
Filter.register_filter(MatchSndEx2,
|
Filter.register_filter(MatchSndEx2,
|
||||||
description=_("Names with the specified SoundEx code"),
|
description=_("Names with tSoundEx code of ..."),
|
||||||
label=_("SoundEx Code"),
|
label=_("SoundEx Code"),
|
||||||
qualifier=1)
|
qualifier=1)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000 Donald N. Allingham
|
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -18,7 +18,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
"Names that match a regular expression"
|
"Names that match a regular expression of ..."
|
||||||
|
|
||||||
import Filter
|
import Filter
|
||||||
import re
|
import re
|
||||||
@ -26,7 +26,7 @@ import Utils
|
|||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
class RegExMatch(Filter.Filter):
|
class RegExMatch(Filter.Filter):
|
||||||
"Names that match a regular expression"
|
"Names that match a regular expression of ..."
|
||||||
|
|
||||||
def __init__(self,text):
|
def __init__(self,text):
|
||||||
self.ok = 1
|
self.ok = 1
|
||||||
@ -48,7 +48,7 @@ class RegExMatch(Filter.Filter):
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
Filter.register_filter(RegExMatch,
|
Filter.register_filter(RegExMatch,
|
||||||
description=_("Names that match a regular expression"),
|
description=_("Names that match a regular expression of ..."),
|
||||||
label=_("Text"),
|
label=_("Text"),
|
||||||
qualifier=1)
|
qualifier=1)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000 Donald N. Allingham
|
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -18,7 +18,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
"Names that contain a substring"
|
"Names that contain a substring of ..."
|
||||||
|
|
||||||
import Filter
|
import Filter
|
||||||
import string
|
import string
|
||||||
@ -26,7 +26,7 @@ import Utils
|
|||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
class SubString(Filter.Filter):
|
class SubString(Filter.Filter):
|
||||||
"Names that contain a substring"
|
"Names that contain a substring of ..."
|
||||||
|
|
||||||
def match(self,person):
|
def match(self,person):
|
||||||
s1 = string.lower(Utils.phonebook_name(person))
|
s1 = string.lower(Utils.phonebook_name(person))
|
||||||
@ -39,7 +39,7 @@ class SubString(Filter.Filter):
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
Filter.register_filter(SubString,
|
Filter.register_filter(SubString,
|
||||||
description=_("Names that contain a substring"),
|
description=_("Names that contain a substring of ..."),
|
||||||
label=_("Text"),
|
label=_("Text"),
|
||||||
qualifier=1)
|
qualifier=1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user