diff --git a/ChangeLog b/ChangeLog index 3b367bf74..b9a6a6860 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * src/Editors/_EditRepoRef.py: Add backreference tab 2006-04-21 Alex Roitman + * src/RelLib/_GrampsType.py (set_from_xml_str): Remove extra def. * src/PluginUtils/_PluginStatus.py: Many small fixes. * src/ManagedWindow.py (GrampsWindowManager.display_menu_list): Fix building the menu for child-less windows. diff --git a/src/RelLib/_GrampsType.py b/src/RelLib/_GrampsType.py index b9b576f12..ba4c3eb4d 100644 --- a/src/RelLib/_GrampsType.py +++ b/src/RelLib/_GrampsType.py @@ -76,6 +76,10 @@ class GrampsType: self.string = value def xml_str(self): + """ + This method returns the untranslated string (e.g. suitable for XML) + corresponding to the type. + """ if self.val == self._CUSTOM: return self.string else: @@ -93,9 +97,6 @@ class GrampsType: else: return self._I2SMAP.get(self.val,_('Unknown')) - def set_from_xml_str(self,the_str): - return self - def __int__(self): return self.val