From d8b04d281dc22bdd525fccb41119f4c19ce0bc41 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 13 Apr 2013 19:47:59 +0000 Subject: [PATCH] GrampsLocale: Restore the _hastag.py files Accidentally deleted in r21968 svn: r21988 --- gramps/gen/filters/rules/family/_hastag.py | 51 ++++++++++++++++++++++ gramps/gen/filters/rules/media/_hastag.py | 51 ++++++++++++++++++++++ gramps/gen/filters/rules/note/_hastag.py | 51 ++++++++++++++++++++++ gramps/gen/filters/rules/person/_hastag.py | 51 ++++++++++++++++++++++ 4 files changed, 204 insertions(+) create mode 100644 gramps/gen/filters/rules/family/_hastag.py create mode 100644 gramps/gen/filters/rules/media/_hastag.py create mode 100644 gramps/gen/filters/rules/note/_hastag.py create mode 100644 gramps/gen/filters/rules/person/_hastag.py diff --git a/gramps/gen/filters/rules/family/_hastag.py b/gramps/gen/filters/rules/family/_hastag.py new file mode 100644 index 000000000..3150ad214 --- /dev/null +++ b/gramps/gen/filters/rules/family/_hastag.py @@ -0,0 +1,51 @@ +# +# Gramps - a GTK+/GNOME based genealogy program +# +# Copyright (C) 2010 Nick Hall +# +# 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$ +""" +Rule that checks for a family with a particular tag. +""" + +#------------------------------------------------------------------------- +# +# Standard Python modules +# +#------------------------------------------------------------------------- +from ....const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext + +#------------------------------------------------------------------------- +# +# GRAMPS modules +# +#------------------------------------------------------------------------- +from .._hastagbase import HasTagBase + +#------------------------------------------------------------------------- +# +# HasTag +# +#------------------------------------------------------------------------- +class HasTag(HasTagBase): + """ + Rule that checks for a family with a particular tag. + """ + labels = [ _('Tag:') ] + name = _('Families with the ') + description = _("Matches families with the particular tag") diff --git a/gramps/gen/filters/rules/media/_hastag.py b/gramps/gen/filters/rules/media/_hastag.py new file mode 100644 index 000000000..e484a44d1 --- /dev/null +++ b/gramps/gen/filters/rules/media/_hastag.py @@ -0,0 +1,51 @@ +# +# Gramps - a GTK+/GNOME based genealogy program +# +# Copyright (C) 2010 Nick Hall +# +# 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$ +""" +Rule that checks for a media object with a particular tag. +""" + +#------------------------------------------------------------------------- +# +# Standard Python modules +# +#------------------------------------------------------------------------- +from ....const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext + +#------------------------------------------------------------------------- +# +# GRAMPS modules +# +#------------------------------------------------------------------------- +from .._hastagbase import HasTagBase + +#------------------------------------------------------------------------- +# +# HasTag +# +#------------------------------------------------------------------------- +class HasTag(HasTagBase): + """ + Rule that checks for a media object with a particular tag. + """ + labels = [ _('Tag:') ] + name = _('Media objects with the ') + description = _("Matches media objects with the particular tag") diff --git a/gramps/gen/filters/rules/note/_hastag.py b/gramps/gen/filters/rules/note/_hastag.py new file mode 100644 index 000000000..190f6f551 --- /dev/null +++ b/gramps/gen/filters/rules/note/_hastag.py @@ -0,0 +1,51 @@ +# +# Gramps - a GTK+/GNOME based genealogy program +# +# Copyright (C) 2010 Nick Hall +# +# 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$ +""" +Rule that checks for a note with a particular tag. +""" + +#------------------------------------------------------------------------- +# +# Standard Python modules +# +#------------------------------------------------------------------------- +from ....const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext + +#------------------------------------------------------------------------- +# +# GRAMPS modules +# +#------------------------------------------------------------------------- +from .._hastagbase import HasTagBase + +#------------------------------------------------------------------------- +# +# HasTag +# +#------------------------------------------------------------------------- +class HasTag(HasTagBase): + """ + Rule that checks for a note with a particular tag. + """ + labels = [ _('Tag:') ] + name = _('Notes with the ') + description = _("Matches notes with the particular tag") diff --git a/gramps/gen/filters/rules/person/_hastag.py b/gramps/gen/filters/rules/person/_hastag.py new file mode 100644 index 000000000..b4fe5bd6b --- /dev/null +++ b/gramps/gen/filters/rules/person/_hastag.py @@ -0,0 +1,51 @@ +# +# Gramps - a GTK+/GNOME based genealogy program +# +# Copyright (C) 2010 Nick Hall +# +# 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$ +""" +Rule that checks for a person with a particular tag. +""" + +#------------------------------------------------------------------------- +# +# Standard Python modules +# +#------------------------------------------------------------------------- +from ....const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext + +#------------------------------------------------------------------------- +# +# GRAMPS modules +# +#------------------------------------------------------------------------- +from .._hastagbase import HasTagBase + +#------------------------------------------------------------------------- +# +# HasTag +# +#------------------------------------------------------------------------- +class HasTag(HasTagBase): + """ + Rule that checks for a person with a particular tag. + """ + labels = [ _('Tag:') ] + name = _('People with the ') + description = _("Matches people with the particular tag")