it appears I have introduced a 'serious' bug in 2.2.9. Working on gramps xml
files (probably gedcom too) doesn't work anymore, GRAMPS crashes on exit.
Apperently nobody tried gramps on not grdb data, or tried it with xml that
has broken references.
Workaround is simple off course: use grdb, viewing of xml works too.
I have a simple patch to have it working again, but need to understand still
The patch is:
--- src/GrampsDb/_GrampsInMemDB.py (revision 9231)
+++ src/GrampsDb/_GrampsInMemDB.py (working copy)
@@ -257,7 +257,8 @@
old_id = old_data[self.ID_INDEX]
if old_id is not None and obj.gramps_id != old_id:
- trans_map[gid] = obj.handle
+ if gid is not None:
+ trans_map[gid] = obj.handle
So a None gid is not deleted, but it can be added now. Correction to bug
http://bugs.gramps-project.org/view.php?id=1282 adds None gid in the
temporary created objects of backref.
We really need some simple unittests I would suppose...