* src/DisplayModels.py: fixed event type display
svn: r4832
This commit is contained in:
parent
0802e3a811
commit
26ba860fc3
@ -1,4 +1,5 @@
|
||||
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
|
||||
import, add missing event descriptions
|
||||
* src/RelLib.py: type checking for set_role relationship types
|
||||
|
@ -538,7 +538,14 @@ class EventModel(BaseModel):
|
||||
return u''
|
||||
|
||||
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):
|
||||
return unicode(data[1])
|
||||
|
Loading…
Reference in New Issue
Block a user