1# 2# Gramps - a GTK+/GNOME based genealogy program 3# 4# Copyright (C) 2002-2006 Donald N. Allingham 5# Copyright (C) 2011 Tim G L Lyons 6# 7# This program is free software; you can redistribute it and/or modify 8# it under the terms of the GNU General Public License as published by 9# the Free Software Foundation; either version 2 of the License, or 10# (at your option) any later version. 11# 12# This program is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15# GNU General Public License for more details. 16# 17# You should have received a copy of the GNU General Public License 18# along with this program; if not, write to the Free Software 19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20# 21 22""" 23Filter rule to match family with a particular citation. 24""" 25#------------------------------------------------------------------------- 26# 27# Standard Python modules 28# 29#------------------------------------------------------------------------- 30from ....const import GRAMPS_LOCALE as glocale 31_ = glocale.translation.gettext 32 33#------------------------------------------------------------------------- 34# 35# Gramps modules 36# 37#------------------------------------------------------------------------- 38from .._hascitationbase import HasCitationBase 39 40#------------------------------------------------------------------------- 41# 42# HasEvent 43# 44#------------------------------------------------------------------------- 45class HasCitation(HasCitationBase): 46 """Rule that checks for a family with a particular value""" 47 48 labels = [ _('Volume/Page:'), 49 _('Date:'), 50 _('Confidence level:')] 51 name = _('Families with the <citation>') 52 description = _("Matches families with a citation of a particular " 53 "value") 54