* src/DisplayModels.py: fixed event type display
svn: r4832
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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])
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user