* src/DisplayModels.py: fixed event type display

svn: r4832
This commit is contained in:
Don Allingham 2005-06-16 04:08:42 +00:00
parent 0802e3a811
commit 26ba860fc3
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2005-06-15 Don Allingham <don@gramps-project.org> 2005-06-15 Don Allingham <don@gramps-project.org>
* src/DisplayModels.py: fixed event type display
* src/ReadXML.py: build child/family relationships properly on * src/ReadXML.py: build child/family relationships properly on
import, add missing event descriptions import, add missing event descriptions
* src/RelLib.py: type checking for set_role relationship types * src/RelLib.py: type checking for set_role relationship types

View File

@ -538,7 +538,14 @@ class EventModel(BaseModel):
return u'' return u''
def column_type(self,data): def column_type(self,data):
return unicode(data[2][1]) (code,val) = data[2]
if code == RelLib.Event.CUSTOM:
return unicode(val)
else:
val = Utils.personal_events.get(code)
if not val:
val = Utils.family_events.get(code,_("Unknown"))
return val
def column_id(self,data): def column_id(self,data):
return unicode(data[1]) return unicode(data[1])