Implement get_default_person and get_default_handle in PrivateProxyDb.py.
svn: r8858
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2007-08-24 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/GrampsDbUtils/_PrivateProxyDb.py: Implement get_default_person and
|
||||||
|
get_default_handle
|
||||||
|
|
||||||
2007-08-23 Benny Malengier <bm@cage.ugent.be>
|
2007-08-23 Benny Malengier <bm@cage.ugent.be>
|
||||||
* src/ExportAssistant.py: finished, new export assistant
|
* src/ExportAssistant.py: finished, new export assistant
|
||||||
* src/ViewManager.py : delete temporary hook new export assistant
|
* src/ViewManager.py : delete temporary hook new export assistant
|
||||||
|
@@ -954,11 +954,18 @@ class PrivateProxyDb:
|
|||||||
|
|
||||||
def get_default_person(self):
|
def get_default_person(self):
|
||||||
"""returns the default Person of the database"""
|
"""returns the default Person of the database"""
|
||||||
raise NotImplementedError
|
person = self.db.get_default_person()
|
||||||
|
if person and person.get_privacy() == False:
|
||||||
|
return sanitize_person(self.db,person)
|
||||||
|
return None
|
||||||
|
|
||||||
def get_default_handle(self):
|
def get_default_handle(self):
|
||||||
"""returns the default Person of the database"""
|
"""returns the default Person of the database"""
|
||||||
raise NotImplementedError
|
handle = self.db.get_default_handle()
|
||||||
|
person = self.db.get_person_from_handle(handle)
|
||||||
|
if person and person.get_privacy() == False:
|
||||||
|
return handle
|
||||||
|
return None
|
||||||
|
|
||||||
def get_save_path(self):
|
def get_save_path(self):
|
||||||
"""returns the save path of the file, or "" if one does not exist"""
|
"""returns the save path of the file, or "" if one does not exist"""
|
||||||
|
Reference in New Issue
Block a user