mirror of
https://github.com/WikiTeam/wikiteam
synced 2024-11-04 12:00:28 +00:00
issue #4
git-svn-id: https://wikiteam.googlecode.com/svn/trunk@83 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
This commit is contained in:
parent
d580f53e00
commit
f7d5519757
@ -313,8 +313,8 @@ def generateXMLDump(config={}, titles=[], start=''):
|
||||
xmlfile.close()
|
||||
xmlfile2.close()
|
||||
#subst xml with xml2
|
||||
os.remove('%s/%s' % (config['path'], xmlfilename))
|
||||
os.rename('%s/%s2' % (config['path'], xmlfilename), '%s/%s' % (config['path'], xmlfilename))
|
||||
os.remove('%s/%s' % (config['path'], xmlfilename)) #remove previous xml dump
|
||||
os.rename('%s/%s2' % (config['path'], xmlfilename), '%s/%s' % (config['path'], xmlfilename)) #move correctly truncated dump to its real name
|
||||
else:
|
||||
#requested complete xml dump
|
||||
lock = False
|
||||
|
Loading…
Reference in New Issue
Block a user