From cba1d710abe8a424a9fdc7f6fff88636eb005224 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 16 Dec 2006 03:47:03 +0000 Subject: [PATCH] 2006-12-15 Don Allingham * src/GrampsDb/_ReadGedcom.py (import2): import a readonly file properly svn: r7806 --- ChangeLog | 3 +++ src/GrampsDb/_ReadGedcom.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 130bb8cce..0e2b4de68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-12-15 Don Allingham + * src/GrampsDb/_ReadGedcom.py (import2): import a readonly file properly (bug #765) + 2006-12-15 Martin Hawlisch * src/Editors/_EditSourceRef.py, * src/Editors/_EditRepoRef.py, diff --git a/src/GrampsDb/_ReadGedcom.py b/src/GrampsDb/_ReadGedcom.py index e84c2b21d..76e11a1c8 100644 --- a/src/GrampsDb/_ReadGedcom.py +++ b/src/GrampsDb/_ReadGedcom.py @@ -239,7 +239,10 @@ def import2(database, filename, callback, codeset, use_trans): use_trans = False try: + ro = database.readonly + database.readonly = False close = g.parse_gedcom_file(use_trans) + database.readonly = ro except IOError,msg: errmsg = _("%s could not be opened\n") % filename ErrorDialog(errmsg,str(msg))