* src/EditPerson.py: hide window while closing updating info

* src/FamilyView.py: Fix deleting of spouses and children
* src/GrampsDbBase.py: add remove_family, clear default person
if the person is deleted
* src/PeopleView.py: text clean up
* src/gramps_main.py: disable buttons while deleting a person


svn: r3776
This commit is contained in:
Don Allingham
2004-12-03 01:49:09 +00:00
parent 7b7d9ddac8
commit e25236f85a
6 changed files with 69 additions and 20 deletions

View File

@ -893,9 +893,13 @@ class GrampsDbBase:
if self.metadata and self.metadata.has_key('default'):
person = Person()
handle = self.metadata['default']
data = self.person_map.get(str(handle))
person.unserialize(data)
return person
data = self.person_map.get(str(handle),None)
if data:
person.unserialize(data)
return person
else:
self.metadata['default'] = None
return None
return None
def get_save_path(self):
@ -976,6 +980,14 @@ class GrampsDbBase:
"""
assert False, "Needs to be overridden in the derived class"
def remove_family(self,handle,transaction):
"""
Removes the Family specified by the database handle from the
database, preserving the change in the passed transaction. This
method must be overridden in the derived class.
"""
assert False, "Needs to be overridden in the derived class"
def has_person_handle(self,handle):
"""
returns True if the handle exists in the current Person database.