* src/FilterEditor/_EditRule.py (MySelect.get_text): Dirty hack to

prevent rule editor from crashing. NEEDS REPAIR to stop relying on
	the localized text.
	* src/Filters/Rules/Person/_HasFamilyEvent.py (apply): Use new API.
	* src/RelLib/_GrampsType.py (set,__cmp__): Consider unicode type
	along with the str.


svn: r7075
This commit is contained in:
Alex Roitman
2006-07-25 19:52:28 +00:00
parent a34a20409a
commit 865be0198b
4 changed files with 10 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ class GrampsType:
elif type(value) == int:
self.val = value
self.string = ''
elif type(value) == str:
elif type(value) in (str,unicode):
self.val = self._S2IMAP.get(value,self._CUSTOM)
if self.val == self._CUSTOM:
self.string = value
@@ -115,7 +115,7 @@ class GrampsType:
def __cmp__(self, value):
if type(value) == int:
return cmp(self.val,value)
elif type(value) == str:
elif type(value) in (str,unicode):
if self.val == self._CUSTOM:
return cmp(self.string,value)
else: