Converted several dialogs from gramps_main into objects, and placed them in AddMedia.py and SelectChild.py
svn: r476
This commit is contained in:
11
src/utils.py
11
src/utils.py
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user