Converted several dialogs from gramps_main into objects, and placed them in AddMedia.py and SelectChild.py

svn: r476
This commit is contained in:
Don Allingham
2001-10-16 15:04:25 +00:00
parent a82bcc8eee
commit 2f41ac9268
5 changed files with 562 additions and 457 deletions

View File

@@ -367,3 +367,14 @@ def get_mime_description(type):
return type
#-------------------------------------------------------------------------
#
# Short hand function to return either the person's birthday, or an empty
# string if the person is None
#
#-------------------------------------------------------------------------
def birthday(person):
if person:
return person.getBirth().getQuoteDate()
else:
return ""