* src/filters/Complete.py: Add filter matching people with the
complete flag. * src/GenericFilter.py (HasCompleteRecord): Add rule matching people with the complete records. * src/RelLib.py (Source.setAbbrev, Source.getAbbrev): Add functions. * src/WriteXML.py (write_xml_data): Save abbreviation info for sources. * src/GrampsParser.py (GrampsParser.stop_sabbrev): Parse abbreviation. * src/gramps.glade (sourceEditor): Add widgets for Call Number and Abbreviation. * src/EditSource.py: Support Call Number and Abbreviation. * src/plugins/ReadGedcom.py (parse_source): Parse abbreviation. * src/plugins/WriteGedcom.py (write_sources): Export abbreviation. * NEWS: Update. svn: r2463
This commit is contained in:
42
src/filters/Complete.py
Normal file
42
src/filters/Complete.py
Normal file
@ -0,0 +1,42 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2003 Donald N. Allingham
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"People with complete information"
|
||||
|
||||
import Filter
|
||||
from gettext import gettext as _
|
||||
|
||||
class IsComplete(Filter.Filter):
|
||||
"People with complete information"
|
||||
|
||||
def match(self,person):
|
||||
return person.getComplete() == 1
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
Filter.register_filter(IsComplete,
|
||||
description=_("People with complete information"),
|
||||
qualifier=0)
|
||||
|
Reference in New Issue
Block a user