From 80a9597e5a2206448fa802dd64f2183d0ab11229 Mon Sep 17 00:00:00 2001 From: Sam Manzi Date: Wed, 9 Sep 2015 08:05:23 +1000 Subject: [PATCH] 8888 'Gramplets' update broken wiki help links --- gramps/plugins/gramplet/agestats.py | 13 +++++++++ gramps/plugins/gramplet/ancestor.py | 2 +- gramps/plugins/gramplet/gramplet.gpr.py | 28 +++++++++---------- gramps/plugins/gramplet/metadataviewer.py | 8 ++++++ gramps/plugins/gramplet/sessionloggramplet.py | 8 +++++- .../plugins/gramplet/topsurnamesgramplet.py | 6 ++++ 6 files changed, 49 insertions(+), 16 deletions(-) diff --git a/gramps/plugins/gramplet/agestats.py b/gramps/plugins/gramplet/agestats.py index 3f35a3710..f9488baf2 100644 --- a/gramps/plugins/gramplet/agestats.py +++ b/gramps/plugins/gramplet/agestats.py @@ -19,11 +19,24 @@ # """ +Age Stats Gramplet + This Gramplet shows textual distributions of age breakdowns of various types. """ +#------------------------------------------------------------------------- +# +# Python modules +# +#------------------------------------------------------------------------- from collections import defaultdict +#------------------------------------------------------------------------ +# +# Gramps modules +# +#------------------------------------------------------------------------ + from gramps.gen.plug import Gramplet from gramps.gen.const import GRAMPS_LOCALE as glocale _ = glocale.translation.gettext diff --git a/gramps/plugins/gramplet/ancestor.py b/gramps/plugins/gramplet/ancestor.py index c11dc7203..720c9d60f 100644 --- a/gramps/plugins/gramplet/ancestor.py +++ b/gramps/plugins/gramplet/ancestor.py @@ -18,7 +18,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -"""Ancestor Gramplet""" +"""Ancestors Gramplet""" #------------------------------------------------------------------------- # diff --git a/gramps/plugins/gramplet/gramplet.gpr.py b/gramps/plugins/gramplet/gramplet.gpr.py index 5b2138e4f..3fba89986 100644 --- a/gramps/plugins/gramplet/gramplet.gpr.py +++ b/gramps/plugins/gramplet/gramplet.gpr.py @@ -79,9 +79,9 @@ register(GRAMPLET, gramps_target_version=MODULE_VERSION, ) -register(GRAMPLET, - id = "Descendant", - name=_("Descendant"), +register(GRAMPLET, + id = "Descendants", + name=_("Descendants"), description = _("Gramplet showing active person's descendants"), status = STABLE, fname="descendant.py", @@ -96,9 +96,9 @@ register(GRAMPLET, navtypes=["Person"], ) -register(GRAMPLET, - id = "Ancestor", - name=_("Ancestor"), +register(GRAMPLET, + id = "Ancestor", + name=_("Ancestors"), description = _("Gramplet showing active person's ancestors"), status = STABLE, fname="ancestor.py", @@ -376,7 +376,7 @@ register(GRAMPLET, fname="mediapreview.py", height=200, gramplet = 'MediaPreview', - gramplet_title=_("Preview"), + gramplet_title=_("Media Preview"), navtypes=["Media"], ) @@ -392,9 +392,9 @@ except ImportError: available = False if available: - register(GRAMPLET, - id = "Metadata Viewer", - name = _("Metadata Viewer"), + register(GRAMPLET, + id = "Image Metadata Viewer", + name = _("Image Metadata"), description = _("Gramplet showing metadata for a media object"), version = "1.0.0", gramps_target_version=MODULE_VERSION, @@ -1096,7 +1096,7 @@ register(GRAMPLET, register(GRAMPLET, id='Records Gramplet', - name=_("Records Gramplet"), + name=_("Records"), description=_("Shows some interesting records about people and families"), version='1.0', gramps_target_version=MODULE_VERSION, @@ -1248,9 +1248,9 @@ register(GRAMPLET, gramplet_title="Uncollected Objects", ) -register(GRAMPLET, - id="SoundEx Generator", - name=_("SoundEx Generator"), +register(GRAMPLET, + id="SoundEx Generator", + name=_("SoundEx"), description = _("Gramplet to generate SoundEx codes"), version="1.0.0", gramps_target_version=MODULE_VERSION, diff --git a/gramps/plugins/gramplet/metadataviewer.py b/gramps/plugins/gramplet/metadataviewer.py index 1bdd6bf1f..68d84e810 100644 --- a/gramps/plugins/gramplet/metadataviewer.py +++ b/gramps/plugins/gramplet/metadataviewer.py @@ -20,6 +20,14 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +""" +Image Metadata Gramplet +""" +#------------------------------------------------------------------------- +# +# Gramps modules +# +#------------------------------------------------------------------------- from gramps.plugins.lib.libmetadata import MetadataView from gramps.gen.plug import Gramplet from gramps.gen.utils.file import media_path_full diff --git a/gramps/plugins/gramplet/sessionloggramplet.py b/gramps/plugins/gramplet/sessionloggramplet.py index 22e2bcb5e..3f05e6000 100644 --- a/gramps/plugins/gramplet/sessionloggramplet.py +++ b/gramps/plugins/gramplet/sessionloggramplet.py @@ -18,11 +18,17 @@ #------------------------------------------------------------------------ # -# GRAMPS modules +# Python modules # #------------------------------------------------------------------------ import time +#------------------------------------------------------------------------ +# +# Gramps modules +# +#------------------------------------------------------------------------ + from gramps.gen.lib import Person, Family from gramps.gen.db import PERSON_KEY, FAMILY_KEY, TXNDEL from gramps.gen.plug import Gramplet diff --git a/gramps/plugins/gramplet/topsurnamesgramplet.py b/gramps/plugins/gramplet/topsurnamesgramplet.py index b8f7df538..9f291e158 100644 --- a/gramps/plugins/gramplet/topsurnamesgramplet.py +++ b/gramps/plugins/gramplet/topsurnamesgramplet.py @@ -16,6 +16,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +#------------------------------------------------------------------------ +# +# Python modules +# +#------------------------------------------------------------------------ + from collections import defaultdict #------------------------------------------------------------------------