2006-05-14 Alex Roitman <shura@gramps-project.org>

* src/Filters/Rules/Person/_HasNoteRegexp.py: Import re module.



svn: r6653
This commit is contained in:
Alex Roitman 2006-05-14 17:58:40 +00:00
parent ef524056d1
commit d35c6af27d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2006-05-14 Alex Roitman <shura@gramps-project.org>
* src/Filters/Rules/Person/_HasNoteRegexp.py: Import re module.
2006-05-13 Brian Matherly <brian@gramps-project.org> 2006-05-13 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: Add option for number of generations in * src/plugins/NarrativeWeb.py: Add option for number of generations in
ancestor graph (bug #0000077) ancestor graph (bug #0000077)

View File

@ -25,6 +25,7 @@
# Standard Python modules # Standard Python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import re
from gettext import gettext as _ from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -42,7 +43,8 @@ class HasNoteRegexp(Rule):
labels = [ _('Regular expression:')] labels = [ _('Regular expression:')]
name = _('People having notes containing <regular expression>') name = _('People having notes containing <regular expression>')
description = _("Matches people whose notes contain text matching a regular expression") description = _("Matches people whose notes contain text "
"matching a regular expression")
category = _('General filters') category = _('General filters')
def __init__(self, list): def __init__(self, list):