XML improvements, photo handling better (no thumbnail for main edit personapage p

svn: r266
This commit is contained in:
Don Allingham
2001-07-29 23:27:42 +00:00
parent 100e719d5a
commit 9af7a17146
6 changed files with 121 additions and 64 deletions

View File

@@ -23,6 +23,7 @@ from Researcher import *
import const
import string
import Config
import time
import gzip
import shutil
@@ -223,8 +224,11 @@ def exportData(database, filename, callback):
if os.path.isfile(filename):
shutil.copy(filename, filename + ".bak")
g = gzip.open(filename,"wb")
if Config.uncompress:
g = open(filename,"w")
else:
g = gzip.open(filename,"wb")
g.write("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n")
g.write("<database>\n")