2.2.9 has a bug not allowing you to directly edit XML files.
Direct edit of XML is anyway something you should try not to do, better is to import in .grdb database, do your work, and export to xml if you need a backup or for other reasons.

If however you need direct edit of XML, you should use 2.2.8 instead, or use the development version branch22 in subversion where this is already solved.
2.2.10 is not planned at the moment though, we considered this a minor annoyance only. Are you sure your data was corrupted because of this? That would make this bug high priority instead.


2007/12/17, Graham Williams < Graham.Williams@togaware.com>:
User Information:

This error occurs on exiting from Gramps.
The message claims that the data file will be okay,
and I should restart immediately,
However, the file is corrupted and had to be
recovered from a backup.

Error Details:

58288: ERROR: gramps.py: line 147: Unhandled exception
Traceback (most recent call last):
  File "/usr/share/gramps/ViewManager.py", line 492, in quit
    self.state.db.close ()
  File "/usr/share/gramps/GrampsDb/_GrampsXMLDB.py", line 76, in close
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 111, in
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 178, in write
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 278, in
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 453, in
    fhandle = family.get_father_handle()
AttributeError: 'NoneType' object has no attribute 'get_father_handle'

System Information:

Python version: 2.4.4 (#2, Aug 16 2007, 00:34:54) [GCC 4.1.3 20070812
(prerelease) (Debian 4.1.2-15)]
BSDDB version:
Gramps version: 2.2.9-1
OS: Linux
Distribution: 2.6.22-3-amd64

SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
Gramps-bugs mailing list