2831: missing filter rule on Event object matching source reference
svn: r12706
This commit is contained in:
parent
fdfacd972c
commit
83dfb87696
@ -14,6 +14,7 @@ pkgdata_PYTHON = \
|
||||
_HasIdOf.py\
|
||||
_HasMarkerOf.py\
|
||||
_HasNote.py \
|
||||
_HasSource.py \
|
||||
_HasType.py\
|
||||
_HasNoteMatchingSubstringOf.py\
|
||||
_HasReferenceCountOf.py\
|
||||
|
44
src/Filters/Rules/Event/_HasSource.py
Normal file
44
src/Filters/Rules/Event/_HasSource.py
Normal file
@ -0,0 +1,44 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2002-2007 Donald N. Allingham
|
||||
# Copyright (C) 2007-2009 Brian G. Matherly
|
||||
# Copyright (C) 2009 Benny Malengier
|
||||
#
|
||||
# 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
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Standard Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from Filters.Rules._HasSourceBase import HasSourceBase
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# "People having sources"
|
||||
#-------------------------------------------------------------------------
|
||||
class HasSource(HasSourceBase):
|
||||
"""Events with sources"""
|
||||
|
||||
name = _('Events with <count> source')
|
||||
description = _("Matches events with a certain number of items in the source")
|
@ -37,6 +37,7 @@ from _HasNote import HasNote
|
||||
from _HasNoteRegexp import HasNoteRegexp
|
||||
from _HasNoteMatchingSubstringOf import HasNoteMatchingSubstringOf
|
||||
from _HasReferenceCountOf import HasReferenceCountOf
|
||||
from _HasSource import HasSource
|
||||
from _EventPrivate import EventPrivate
|
||||
from _MatchesFilter import MatchesFilter
|
||||
from _MatchesPersonFilter import MatchesPersonFilter
|
||||
@ -57,6 +58,7 @@ editor_rule_list = [
|
||||
HasNoteRegexp,
|
||||
HasNoteMatchingSubstringOf,
|
||||
HasReferenceCountOf,
|
||||
HasSource,
|
||||
EventPrivate,
|
||||
MatchesFilter,
|
||||
MatchesPersonFilter,
|
||||
|
Loading…
Reference in New Issue
Block a user