From 5df0a7c8a9e38fe107b2d9fcd5cf968ece26f20a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 18 Aug 2005 00:33:49 +0000 Subject: [PATCH] * src/FamilyView.py: commit person when removed from family svn: r5102 --- gramps2/ChangeLog | 3 +++ gramps2/src/FamilyView.py | 3 ++- gramps2/src/GrampsDBCallback.py | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 54462343d..847600fbe 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-08-17 Don Allingham + * src/FamilyView.py: commit person when removed from family + 2005-08-18 Eero Tamminen * src/GenericFilter.py, src/Marriage.py, src/plugins/TimeLine.py, src/plugins/SimpleBookTitle.py: add localization context for diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index 864e3b705..d7a138467 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -848,6 +848,7 @@ class FamilyView: temp = self.parent.db.get_person_from_handle(family.get_father_handle()) temp.get_family_handle_list().remove(family.get_handle()) self.parent.db.remove_family(family.get_handle(),trans) + self.parent.db.commit_person(temp,trans) else: self.parent.db.commit_family(family,trans) @@ -1077,7 +1078,7 @@ class FamilyView: self.spouse_selection.select_iter(node) else: self.display_marriage(None) - except KeyError: + except KeyError,msg: WarningDialog(_('Database corruption detected'), _('A problem was detected with the database. Please ' 'run the Check and Repair Database tool to fix the ' diff --git a/gramps2/src/GrampsDBCallback.py b/gramps2/src/GrampsDBCallback.py index ea1dc0611..dcce42b40 100644 --- a/gramps2/src/GrampsDBCallback.py +++ b/gramps2/src/GrampsDBCallback.py @@ -216,7 +216,6 @@ class GrampsDBCallback(object): # whether or not instance based logging is enabled. try: __LOG_ALL = int(os.environ.get('GRAMPS_SIGNAL',"0")) == 1 - print __LOG_ALL except: __LOG_ALL = False