* src/RelLib/_GrampsType.py (set_from_xml_str): Remove extra def.
svn: r6397
This commit is contained in:
parent
7e88c6c037
commit
524c5fe207
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user