* src/DateEdit.py (update_after_editor): Add method.
* src/EditPerson.py: Always have birth/death events (never None); Use new update method for dates; Only commit death/birth if changed; Only add new birth/death if non-empty. * src/EventEdit.py: Translate stored event names before including in menu; Exclude birth/death from menu; Do not add birth/death to the custom event types; Only detect type change for non-birth/death. * src/GrampsDbBase.py: Do not commit objects with empty handles. * src/GrampsInMemDB.py: Do not commit objects with empty handles. * src/Utils.py (family_name): Add clause for unknown parents. svn: r4172
This commit is contained in:
@ -117,8 +117,10 @@ def family_name(family,db):
|
||||
"mother" : mname}
|
||||
elif father:
|
||||
name = NameDisplay.displayer.display(father)
|
||||
else:
|
||||
elif mother:
|
||||
name = NameDisplay.displayer.display(mother)
|
||||
else:
|
||||
name = _("unknown")
|
||||
return name
|
||||
|
||||
def family_upper_name(family,db):
|
||||
|
Reference in New Issue
Block a user