From 524c5fe2071c6f16e2d13a12fdc49af4b769cd58 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 21 Apr 2006 19:59:16 +0000 Subject: [PATCH] * src/RelLib/_GrampsType.py (set_from_xml_str): Remove extra def. svn: r6397 --- ChangeLog | 1 + src/RelLib/_GrampsType.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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