diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d098f3177..259b81843 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-09-27 Don Allingham + * src/ReadXML.py: store then restore read only flag on load + 2005-09-26 Alex Roitman * all reports: switch categories from const to Report module. * src/const.py.in: Remove report and tool categories. diff --git a/gramps2/src/ReadXML.py b/gramps2/src/ReadXML.py index 19b3c4c55..3da0ac2e5 100644 --- a/gramps2/src/ReadXML.py +++ b/gramps2/src/ReadXML.py @@ -78,6 +78,9 @@ def importData(database, filename, callback=None,cl=0,use_trans=True): change = os.path.getmtime(filename) parser = GrampsParser(database,callback,basefile,change,filename) + ro = database.readonly + database.readonly = False + if gzip_ok: use_gzip = 1 try: @@ -146,6 +149,8 @@ def importData(database, filename, callback=None,cl=0,use_trans=True): xml_file.close() + database.readonly = ro + # copy all local images into .images directory db_dir = os.path.abspath(os.path.dirname(database.get_save_path())) db_base = os.path.basename(database.get_save_path())