* src/ReadXML.py: store then restore read only flag on load
svn: r5247
This commit is contained in:
@ -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>
|
2005-09-26 Alex Roitman <shura@gramps-project.org>
|
||||||
* all reports: switch categories from const to Report module.
|
* all reports: switch categories from const to Report module.
|
||||||
* src/const.py.in: Remove report and tool categories.
|
* 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)
|
change = os.path.getmtime(filename)
|
||||||
parser = GrampsParser(database,callback,basefile,change,filename)
|
parser = GrampsParser(database,callback,basefile,change,filename)
|
||||||
|
|
||||||
|
ro = database.readonly
|
||||||
|
database.readonly = False
|
||||||
|
|
||||||
if gzip_ok:
|
if gzip_ok:
|
||||||
use_gzip = 1
|
use_gzip = 1
|
||||||
try:
|
try:
|
||||||
@ -146,6 +149,8 @@ def importData(database, filename, callback=None,cl=0,use_trans=True):
|
|||||||
|
|
||||||
xml_file.close()
|
xml_file.close()
|
||||||
|
|
||||||
|
database.readonly = ro
|
||||||
|
|
||||||
# copy all local images into <database>.images directory
|
# copy all local images into <database>.images directory
|
||||||
db_dir = os.path.abspath(os.path.dirname(database.get_save_path()))
|
db_dir = os.path.abspath(os.path.dirname(database.get_save_path()))
|
||||||
db_base = os.path.basename(database.get_save_path())
|
db_base = os.path.basename(database.get_save_path())
|
||||||
|
Reference in New Issue
Block a user