* src/RelLib/_GrampsType.py (set_from_xml_str): Remove extra def.

svn: r6397
This commit is contained in:
Alex Roitman 2006-04-21 19:59:16 +00:00
parent 7e88c6c037
commit 524c5fe207
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@
* src/Editors/_EditRepoRef.py: Add backreference tab * src/Editors/_EditRepoRef.py: Add backreference tab
2006-04-21 Alex Roitman <shura@gramps-project.org> 2006-04-21 Alex Roitman <shura@gramps-project.org>
* src/RelLib/_GrampsType.py (set_from_xml_str): Remove extra def.
* src/PluginUtils/_PluginStatus.py: Many small fixes. * src/PluginUtils/_PluginStatus.py: Many small fixes.
* src/ManagedWindow.py (GrampsWindowManager.display_menu_list): * src/ManagedWindow.py (GrampsWindowManager.display_menu_list):
Fix building the menu for child-less windows. Fix building the menu for child-less windows.

View File

@ -76,6 +76,10 @@ class GrampsType:
self.string = value self.string = value
def xml_str(self): def xml_str(self):
"""
This method returns the untranslated string (e.g. suitable for XML)
corresponding to the type.
"""
if self.val == self._CUSTOM: if self.val == self._CUSTOM:
return self.string return self.string
else: else:
@ -93,9 +97,6 @@ class GrampsType:
else: else:
return self._I2SMAP.get(self.val,_('Unknown')) return self._I2SMAP.get(self.val,_('Unknown'))
def set_from_xml_str(self,the_str):
return self
def __int__(self): def __int__(self):
return self.val return self.val