Fix of issue 3480.

svn: r13967
This commit is contained in:
Peter Landgren 2010-01-03 14:14:30 +00:00
parent 3de66d1b62
commit 7c152a868a
4 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ class EventModel(FlatBaseModel):
return u'' return u''
def column_type(self,data): def column_type(self,data):
return str(gen.lib.EventType(data[COLUMN_TYPE])) return unicode(gen.lib.EventType(data[COLUMN_TYPE]))
def column_id(self,data): def column_id(self,data):
return unicode(data[COLUMN_ID]) return unicode(data[COLUMN_ID])

View File

@ -127,7 +127,7 @@ class FamilyModel(FlatBaseModel):
return u"" return u""
def column_type(self, data): def column_type(self, data):
return str(gen.lib.FamilyRelType(data[5])) return unicode(gen.lib.FamilyRelType(data[5]))
def column_marriage(self, data): def column_marriage(self, data):
erlist = [ gen.lib.EventRef().unserialize(d) for d in data[6] ] erlist = [ gen.lib.EventRef().unserialize(d) for d in data[6] ]

View File

@ -229,7 +229,7 @@ class PeopleModel(TreeBaseModel):
GrampsLocale.codeset) GrampsLocale.codeset)
def column_gender(self, data): def column_gender(self, data):
return PeopleModel._GENDER[data[COLUMN_GENDER]] return unicode(PeopleModel._GENDER[data[COLUMN_GENDER]])
def column_birth_day(self, data): def column_birth_day(self, data):
handle = data[0] handle = data[0]

View File

@ -104,7 +104,7 @@ class RepositoryModel(FlatBaseModel):
return unicode(data[1]) return unicode(data[1])
def column_type(self,data): def column_type(self,data):
return str(gen.lib.RepositoryType(data[2])) return unicode(gen.lib.RepositoryType(data[2]))
def column_name(self,data): def column_name(self,data):
return unicode(data[3]) return unicode(data[3])