* 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 2fda127d99
commit 52ead8b15d
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@
* src/Editors/_EditRepoRef.py: Add backreference tab
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/ManagedWindow.py (GrampsWindowManager.display_menu_list):
Fix building the menu for child-less windows.

View File

@ -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