LDS support for marriages

svn: r634
This commit is contained in:
Don Allingham
2001-12-19 02:02:59 +00:00
parent 9d5df95afc
commit a38d379e14
17 changed files with 662 additions and 342 deletions

View File

@@ -469,8 +469,26 @@ def exportData(database, filename, callback):
else:
g = open(filename,"w")
write_xml_data(database, g, callback, 0)
g.close()
try:
write_xml_data(database, g, callback, 0)
except:
from gnome.ui import GnomeErrorDialog
import traceback
from intl import gettext
_ = gettext
traceback.print_exc()
fname = os.path.expanduser("~/gramps.err")
errfile = open(fname,"w")
traceback.print_exc(file=errfile)
errfile.close()
GnomeErrorDialog(_("Failure writing %s, original file restored") % filename)
shutil.copy(filename + ".bak", filename)
if not g.closed:
g.close()
def write_xml_data(database, g, callback, sp):