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:
Don Allingham
2006-05-09 04:15:04 +00:00
parent 4bb09d2fc8
commit 2a7a35a259
3 changed files with 11 additions and 1 deletions

View File

@@ -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