* src/FamilyView.py: commit person when removed from family
svn: r5102
This commit is contained in:
parent
0693bfd63b
commit
5df0a7c8a9
@ -1,3 +1,6 @@
|
|||||||
|
2005-08-17 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/FamilyView.py: commit person when removed from family
|
||||||
|
|
||||||
2005-08-18 Eero Tamminen <eerot@sf>
|
2005-08-18 Eero Tamminen <eerot@sf>
|
||||||
* src/GenericFilter.py, src/Marriage.py, src/plugins/TimeLine.py,
|
* src/GenericFilter.py, src/Marriage.py, src/plugins/TimeLine.py,
|
||||||
src/plugins/SimpleBookTitle.py: add localization context for
|
src/plugins/SimpleBookTitle.py: add localization context for
|
||||||
|
@ -848,6 +848,7 @@ class FamilyView:
|
|||||||
temp = self.parent.db.get_person_from_handle(family.get_father_handle())
|
temp = self.parent.db.get_person_from_handle(family.get_father_handle())
|
||||||
temp.get_family_handle_list().remove(family.get_handle())
|
temp.get_family_handle_list().remove(family.get_handle())
|
||||||
self.parent.db.remove_family(family.get_handle(),trans)
|
self.parent.db.remove_family(family.get_handle(),trans)
|
||||||
|
self.parent.db.commit_person(temp,trans)
|
||||||
else:
|
else:
|
||||||
self.parent.db.commit_family(family,trans)
|
self.parent.db.commit_family(family,trans)
|
||||||
|
|
||||||
@ -1077,7 +1078,7 @@ class FamilyView:
|
|||||||
self.spouse_selection.select_iter(node)
|
self.spouse_selection.select_iter(node)
|
||||||
else:
|
else:
|
||||||
self.display_marriage(None)
|
self.display_marriage(None)
|
||||||
except KeyError:
|
except KeyError,msg:
|
||||||
WarningDialog(_('Database corruption detected'),
|
WarningDialog(_('Database corruption detected'),
|
||||||
_('A problem was detected with the database. Please '
|
_('A problem was detected with the database. Please '
|
||||||
'run the Check and Repair Database tool to fix the '
|
'run the Check and Repair Database tool to fix the '
|
||||||
|
@ -216,7 +216,6 @@ class GrampsDBCallback(object):
|
|||||||
# whether or not instance based logging is enabled.
|
# whether or not instance based logging is enabled.
|
||||||
try:
|
try:
|
||||||
__LOG_ALL = int(os.environ.get('GRAMPS_SIGNAL',"0")) == 1
|
__LOG_ALL = int(os.environ.get('GRAMPS_SIGNAL',"0")) == 1
|
||||||
print __LOG_ALL
|
|
||||||
except:
|
except:
|
||||||
__LOG_ALL = False
|
__LOG_ALL = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user