Removed title_id from gramplets; not needed

svn: r17197
This commit is contained in:
Doug Blank 2011-04-22 01:44:20 +00:00
parent 495ca8fc29
commit 4ec351710d
2 changed files with 2 additions and 16 deletions

View File

@ -303,8 +303,6 @@ class PluginData(object):
The width the gramplet should have detached, default 400 The width the gramplet should have detached, default 400
.. attribute:: expand .. attribute:: expand
If the attributed should be expanded on start, default False 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 .. attribute:: gramplet_title
Title to use for the gramplet, default = _('Gramplet') Title to use for the gramplet, default = _('Gramplet')
.. attribute:: navtypes .. attribute:: navtypes
@ -392,7 +390,6 @@ class PluginData(object):
self._detached_width = 400 self._detached_width = 400
self._expand = False self._expand = False
self._gramplet_title = _('Gramplet') self._gramplet_title = _('Gramplet')
self._gramplet_title_id = 'Gramplet'
self._navtypes = [] self._navtypes = []
self._orientation = None self._orientation = None
self._help_url = None self._help_url = None
@ -830,16 +827,6 @@ class PluginData(object):
def _get_gramplet_title(self): def _get_gramplet_title(self):
return self._gramplet_title 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): def _set_help_url(self, help_url):
if not self._ptype == GRAMPLET: if not self._ptype == GRAMPLET:
raise ValueError, 'help_url may only be set for GRAMPLET plugins' 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) detached_width = property(_get_detached_width, _set_detached_width)
expand = property(_get_expand, _set_expand) expand = property(_get_expand, _set_expand)
gramplet_title = property(_get_gramplet_title, _set_gramplet_title) 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) navtypes = property(_get_navtypes, _set_navtypes)
orientation = property(_get_orientation, _set_orientation) orientation = property(_get_orientation, _set_orientation)
help_url = property(_get_help_url, _set_help_url) help_url = property(_get_help_url, _set_help_url)

View File

@ -197,8 +197,8 @@ class GrampsBar(gtk.Notebook):
base_opts[key] = gramplet.__dict__[key] base_opts[key] = gramplet.__dict__[key]
fp.write(("[%s]" + NL) % gramplet.gname) fp.write(("[%s]" + NL) % gramplet.gname)
for key in base_opts: for key in base_opts:
if key in ["content", "title", "title_id", "tname", "row", "column", "page", if key in ["content", "title", "tname", "row", "column",
"version", "gramps"]: # don't save "page", "version", "gramps"]: # don't save
continue continue
elif key == "data": elif key == "data":
if not isinstance(base_opts["data"], (list, tuple)): if not isinstance(base_opts["data"], (list, tuple)):