output cosmetics
This commit is contained in:
parent
591cf09756
commit
4c90022207
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,6 @@ def convertfile(page, output = None, overwrite = False):
|
||||||
for rev in revs:
|
for rev in revs:
|
||||||
page = Page(request, pagename, rev = rev)
|
page = Page(request, pagename, rev = rev)
|
||||||
pagefile, realrev, exists = page.get_rev(rev = rev);
|
pagefile, realrev, exists = page.get_rev(rev = rev);
|
||||||
print "EXISTS loop: %s " % exists
|
|
||||||
|
|
||||||
mtime = page.mtime_usecs() / USEC
|
mtime = page.mtime_usecs() / USEC
|
||||||
|
|
||||||
|
@ -220,6 +219,8 @@ def convertfile(page, output = None, overwrite = False):
|
||||||
if old_page != ID:
|
if old_page != ID:
|
||||||
redirect_map[old_page] = ID
|
redirect_map[old_page] = ID
|
||||||
|
|
||||||
|
print "Converted %s as %s" % (pagename, dw.wikiFN(output))
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -307,7 +308,6 @@ for output, pagename in pages.items():
|
||||||
page = Page(request, pagename)
|
page = Page(request, pagename)
|
||||||
res = convertfile(page, output = output, overwrite = overwrite)
|
res = convertfile(page, output = output, overwrite = overwrite)
|
||||||
if res != None:
|
if res != None:
|
||||||
print "Converted: %s" % pagename
|
|
||||||
converted += 1
|
converted += 1
|
||||||
print "Processed %d files, converted %d" % (len(pages), converted)
|
print "Processed %d files, converted %d" % (len(pages), converted)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue