2007-10-22 Benny Malengier <benny.malengier@gramps-project.org>

* src/GrampsDb/_GrampsInMemDB.py: xml load/save not working, fixed #1319


svn: r9232
This commit is contained in:
Benny Malengier 2007-10-22 18:46:28 +00:00
parent 680c09f5c2
commit 026d966e9f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,5 @@
2007-10-22 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsDb/_GrampsInMemDB.py: xml load/save not working, fixed #1319
2007-10-21 Jim Sack <jgsack@san.rr.com> 2007-10-21 Jim Sack <jgsack@san.rr.com>
* src/ansel_utf8.py: (see tracker issue #831) fix inoperative * src/ansel_utf8.py: (see tracker issue #831) fix inoperative

View File

@ -257,7 +257,11 @@ class GrampsInMemDB(GrampsDbBase):
old_id = old_data[self.ID_INDEX] old_id = old_data[self.ID_INDEX]
if old_id is not None and obj.gramps_id != old_id: if old_id is not None and obj.gramps_id != old_id:
del trans_map[old_id] del trans_map[old_id]
trans_map[gid] = obj.handle #on load of xml for backref that are encountered before object exists,
#the object is created empty with gid None. Do not add this to
#trans_map. Broken ref will then also not be exported (good!)
if gid is not None:
trans_map[gid] = obj.handle
return True return True
def commit_person(self,person,transaction,change_time=None): def commit_person(self,person,transaction,change_time=None):