2006-05-08 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py: get_default_handle() * src/DisplayState.py: use get_default_handle, fix race condition svn: r6591
This commit is contained in:
@@ -1530,6 +1530,12 @@ class GrampsDbBase(GrampsDBCallback):
|
||||
return None
|
||||
return None
|
||||
|
||||
def get_default_handle(self):
|
||||
"""returns the default Person of the database"""
|
||||
if self.metadata:
|
||||
return self.metadata.get('default')
|
||||
return None
|
||||
|
||||
def get_save_path(self):
|
||||
"""returns the save path of the file, or "" if one does not exist"""
|
||||
return self.path
|
||||
|
||||
Reference in New Issue
Block a user