Removed problem method set(): Bug #2669: Note editor does not retain marker

svn: r11844
This commit is contained in:
Doug Blank 2009-02-04 12:51:34 +00:00
parent 179b3ae6e0
commit 9eac556fca

View File

@ -60,33 +60,3 @@ class MarkerType(GrampsType):
def __init__(self, value=None):
GrampsType.__init__(self, value)
def set(self, value):
"""
Set the marker value.
"""
if isinstance(value, self.__class__):
if value.val == self.CUSTOM and value.string == u'':
self.val = self.NONE
self.string = u''
else:
self.val = value.val
self.string = value.string
elif isinstance(value, tuple):
if value[0] == self.CUSTOM and value[1] == u'':
self.value = self.NONE
self.string = u''
else:
self.val = value[0]
self.string = value[1]
elif isinstance(value, int):
self.val = value
self.string = u''
elif isinstance(value, str):
self.val = self._S2IMAP.get(value, self._CUSTOM)
if self.val == self._CUSTOM:
self.string = value
else:
self.string = u''
else:
self.val = self._DEFAULT
self.string = u''