* src/EditSource.py (DelSrcQuery.query_response): Typos.

* src/ImageSelect.py (DeleteMediaQuery.query_response): Typo.
* src/GrampsInMemDB.py (remove_place,remove_object): Add methods;
(remove_person,remove_source,remove_family): Correctly remove from
id_trans table.
* src/FamilyView.py (parent_deleter,really_remove_spouse):
Use get_ instead of find_ functions.


svn: r4036
This commit is contained in:
Alex Roitman
2005-02-16 13:49:32 +00:00
parent db6a32af63
commit 2b92aa151e
5 changed files with 57 additions and 14 deletions

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2004 Donald N. Allingham
# Copyright (C) 2000-2005 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -20,6 +20,13 @@
# $Id$
#-------------------------------------------------------------------------
#
# Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# GTK/Gnome modules
@ -40,8 +47,6 @@ import ListModel
import RelLib
import NameDisplay
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# Constants
@ -483,7 +488,7 @@ class DelSrcQuery:
self.db.commit_family(p,trans)
for p_id in self.db.get_media_object_handles():
p = self.db.get_object_from_handle(p_id,trans)
p = self.db.get_object_from_handle(p_id)
if self.delete_source(p):
self.db.commit_media_object(p,trans)
@ -494,4 +499,4 @@ class DelSrcQuery:
self.db.remove_source(self.source.get_handle(),trans)
self.db.transaction_commit(trans,_("Delete Source (%s)") % self.source.get_title())
self.update()
self.update(self.source.get_handle())