Code Search for Developers
 
 
  

_IsPrivate.py from gramps at Krugle


Show _IsPrivate.py syntax highlighted

#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2002-2006  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: _IsPrivate.py 6529 2006-05-03 06:29:07Z rshura $

#-------------------------------------------------------------------------
#
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _

#-------------------------------------------------------------------------
#
# GRAMPS modules
#
#-------------------------------------------------------------------------
from _Rule import Rule

#-------------------------------------------------------------------------
# "People marked private"
#-------------------------------------------------------------------------
class IsPrivate(Rule):
    """Objects marked private"""

    name        = _('Objects marked private')
    description = _("Matches objects that are indicated as private")
    category    = _('General filters')

    def apply(self,db,obj):
        return obj.get_privacy()




See more files for this project here

gramps

GRAMPS is a GNOME genealogy program for Linux and FreeBSD that allows you to easily build\r\nand keep track of your family tree.

Project homepage: http://sourceforge.net/projects/gramps
Programming language(s): Python
License: other

  Event/
    Makefile.am
    _AllEvents.py
    _EventPrivate.py
    _HasIdOf.py
    _HasMarkerOf.py
    _HasNoteMatchingSubstringOf.py
    _HasNoteRegexp.py
    _HasReferenceCountOf.py
    _HasType.py
    _MatchesFilter.py
    _MatchesPersonFilter.py
    _RegExpIdOf.py
    __init__.py
  Family/
    Makefile.am
    _AllFamilies.py
    _ChildHasIdOf.py
    _ChildHasNameOf.py
    _FamilyPrivate.py
    _FatherHasIdOf.py
    _FatherHasNameOf.py
    _HasAttribute.py
    _HasEvent.py
    _HasIdOf.py
    _HasMarkerOf.py
    _HasNoteMatchingSubstringOf.py
    _HasNoteRegexp.py
    _HasReferenceCountOf.py
    _HasRelType.py
    _MatchesFilter.py
    _MemberBase.py
    _MotherHasIdOf.py
    _MotherHasNameOf.py
    _RegExpChildName.py
    _RegExpFatherName.py
    _RegExpIdOf.py
    _RegExpMotherName.py
    _SearchChildName.py
    _SearchFatherName.py
    _SearchMotherName.py
    __init__.py
  MediaObject/
    Makefile.am
    _AllMedia.py
    _HasIdOf.py
    _HasMedia.py
    _HasNoteMatchingSubstringOf.py
    _HasNoteRegexp.py
    _HasReferenceCountOf.py
    _MatchesFilter.py
    _MediaPrivate.py
    _RegExpIdOf.py
    __init__.py
  Note/
    Makefile.am
    _AllNotes.py
    _HasIdOf.py
    _HasMarkerOf.py
    _HasNote.py
    _HasNoteMatchingSubstringOf.py
    _HasNoteRegexp.py
    _HasReferenceCountOf.py
    _MatchesFilter.py
    _NotePrivate.py
    _RegExpIdOf.py
    __init__.py
  Person/
    Makefile.am
    _Disconnected.py
    _Everyone.py
    _FamilyWithIncompleteEvent.py
    _HasAttribute.py
    _HasBirth.py
    _HasCommonAncestorWith.py
    _HasCommonAncestorWithFilterMatch.py
    _HasCompleteRecord.py
    _HasDeath.py
    _HasEvent.py
    _HasFamilyAttribute.py
    _HasFamilyEvent.py
    _HasIdOf.py
    _HasMarkerOf.py
    _HasNameOf.py
    _HasNote.py
    _HasNoteMatchingSubstringOf.py
    _HasNoteRegexp.py
    _HasRelationship.py
    _HasSourceOf.py
    _HasTextMatchingRegexpOf.py
    _HasTextMatchingSubstringOf.py
  Place/
  Repository/
  Source/
  Makefile.am
  _Everything.py
  _HasAttributeBase.py
  _HasEventBase.py
  _HasGrampsId.py
  _HasMarkerBase.py
  _HasNoteRegexBase.py
  _HasNoteSubstrBase.py
  _HasReferenceCountBase.py
  _HasTextMatchingRegexpOf.py
  _HasTextMatchingSubstringOf.py
  _IsPrivate.py
  _MatchesFilterBase.py
  _RegExpIdBase.py
  _Rule.py
  _RuleUtils.py
  __init__.py