* src/ReadXML.py: store then restore read only flag on load
svn: r5247
This commit is contained in:
parent
013b9a7e14
commit
b18503a0c3
@ -1,3 +1,6 @@
|
||||
2005-09-27 Don Allingham <don@gramps-project.org>
|
||||
* src/ReadXML.py: store then restore read only flag on load
|
||||
|
||||
2005-09-26 Alex Roitman <shura@gramps-project.org>
|
||||
* all reports: switch categories from const to Report module.
|
||||
* src/const.py.in: Remove report and tool categories.
|
||||
|
@ -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 <database>.images directory
|
||||
db_dir = os.path.abspath(os.path.dirname(database.get_save_path()))
|
||||
db_base = os.path.basename(database.get_save_path())
|
||||
|
Loading…
x
Reference in New Issue
Block a user