From 1063ff3d026ec878fd5567e0a76ab63935c83173 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 8 May 2006 18:54:56 +0000 Subject: [PATCH] (GrampsInMemDB._del_*): Prpoper deletes. svn: r6585 --- gramps2/ChangeLog | 2 +- gramps2/src/GrampsDb/_GrampsInMemDB.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 0e40e04fc..8dc12ad43 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -6,7 +6,7 @@ * src/GrampsDb/_ReadXML.py (start_childref): Typo. * src/GrampsDb/_GrampsInMemDB.py (load): Define self.full_name prior to calling open_undodb(). - (GrampsInMemDB._del_family): Remove obsolete code. + (GrampsInMemDB._del_*): Prpoper deletes. 2006-05-07 Don Allingham * configure.in: set for 2.1.1 diff --git a/gramps2/src/GrampsDb/_GrampsInMemDB.py b/gramps2/src/GrampsDb/_GrampsInMemDB.py index dae8c5da3..0e2186bae 100644 --- a/gramps2/src/GrampsDb/_GrampsInMemDB.py +++ b/gramps2/src/GrampsDb/_GrampsInMemDB.py @@ -171,32 +171,32 @@ class GrampsInMemDB(GrampsDbBase): def _del_person(self,handle): + person = self.person_map.pop(str(handle)) del self.id_trans[person.get_gramps_id()] - del self.person_map[handle] def _del_source(self,handle): + source = self.source_map.pop(str(handle)) del self.sid_trans[source.get_gramps_id()] - del self.source_map[str(handle)] def _del_repository(self,handle): + repository = self.repository_map.pop(str(handle)) del self.rid_trans[repository.get_gramps_id()] - del self.repository_map[str(handle)] def _del_place(self,handle): + place = self.place_map.pop(str(handle)) del self.pid_trans[place.get_gramps_id()] - del self.place_map[str(handle)] def _del_media(self,handle): + obj = self.media_map.pop(str(handle)) del self.oid_trans[obj.get_gramps_id()] - del self.media_map[str(handle)] def _del_family(self,handle): + family = self.family_map.pop(str(handle)) del self.fid_trans[family.get_gramps_id()] - del self.family_map[str(handle)] def _del_event(self,handle): + event = self.event_map.pop(str(handle)) del self.eid_trans[event.get_gramps_id()] - del self.event_map[str(handle)] def commit_person(self,person,transaction,change_time=None): if self.readonly or not person.get_handle():