From 4ec351710dba056b6be7c4292a3fe341ead67887 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 22 Apr 2011 01:44:20 +0000 Subject: [PATCH] Removed title_id from gramplets; not needed svn: r17197 --- src/gen/plug/_pluginreg.py | 14 -------------- src/gui/grampsbar.py | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/gen/plug/_pluginreg.py b/src/gen/plug/_pluginreg.py index 8f9d6332e..ae808c18b 100644 --- a/src/gen/plug/_pluginreg.py +++ b/src/gen/plug/_pluginreg.py @@ -303,8 +303,6 @@ class PluginData(object): The width the gramplet should have detached, default 400 .. attribute:: expand If the attributed should be expanded on start, default False - .. attribute:: gramplet_title_id - Untranslated title to use for the gramplet, default = 'Gramplet' .. attribute:: gramplet_title Title to use for the gramplet, default = _('Gramplet') .. attribute:: navtypes @@ -392,7 +390,6 @@ class PluginData(object): self._detached_width = 400 self._expand = False self._gramplet_title = _('Gramplet') - self._gramplet_title_id = 'Gramplet' self._navtypes = [] self._orientation = None self._help_url = None @@ -830,16 +827,6 @@ class PluginData(object): def _get_gramplet_title(self): return self._gramplet_title - def _set_gramplet_title_id(self, gramplet_title_id): - if not self._ptype == GRAMPLET: - raise ValueError, 'gramplet_title_id may only be set for GRAMPLET plugins' - if not isinstance(gramplet_title_id, str): - raise ValueError, 'Plugin must have a string as gramplet_title_id' - self._gramplet_title_id = gramplet_title_id - - def _get_gramplet_title_id(self): - return self._gramplet_title_id - def _set_help_url(self, help_url): if not self._ptype == GRAMPLET: raise ValueError, 'help_url may only be set for GRAMPLET plugins' @@ -870,7 +857,6 @@ class PluginData(object): detached_width = property(_get_detached_width, _set_detached_width) expand = property(_get_expand, _set_expand) gramplet_title = property(_get_gramplet_title, _set_gramplet_title) - gramplet_title_id = property(_get_gramplet_title_id, _set_gramplet_title_id) navtypes = property(_get_navtypes, _set_navtypes) orientation = property(_get_orientation, _set_orientation) help_url = property(_get_help_url, _set_help_url) diff --git a/src/gui/grampsbar.py b/src/gui/grampsbar.py index 8b2e7bc60..d263efec3 100644 --- a/src/gui/grampsbar.py +++ b/src/gui/grampsbar.py @@ -197,8 +197,8 @@ class GrampsBar(gtk.Notebook): base_opts[key] = gramplet.__dict__[key] fp.write(("[%s]" + NL) % gramplet.gname) for key in base_opts: - if key in ["content", "title", "title_id", "tname", "row", "column", "page", - "version", "gramps"]: # don't save + if key in ["content", "title", "tname", "row", "column", + "page", "version", "gramps"]: # don't save continue elif key == "data": if not isinstance(base_opts["data"], (list, tuple)):