print out converted pages
This commit is contained in:
parent
6ccf75c395
commit
0aa455c205
1 changed files with 5 additions and 3 deletions
|
@ -159,8 +159,8 @@ def convertfile(pagedir, output = None, overwrite = False):
|
||||||
|
|
||||||
page = Page(request, pagename)
|
page = Page(request, pagename)
|
||||||
if page.isUnderlayPage():
|
if page.isUnderlayPage():
|
||||||
print "SKIP UNDERLAY"
|
print "SKIP UNDERLAY: %s" % pagename
|
||||||
return
|
return False
|
||||||
|
|
||||||
current_exists = page.exists()
|
current_exists = page.exists()
|
||||||
current_rev = page.current_rev()
|
current_rev = page.current_rev()
|
||||||
|
@ -222,7 +222,7 @@ def convertfile(pagedir, output = None, overwrite = False):
|
||||||
if old_page != ID:
|
if old_page != ID:
|
||||||
redirect_map[old_page] = ID
|
redirect_map[old_page] = ID
|
||||||
|
|
||||||
return 1
|
return True
|
||||||
|
|
||||||
#
|
#
|
||||||
# "main" starts here
|
# "main" starts here
|
||||||
|
@ -303,8 +303,10 @@ else:
|
||||||
pages[dw.getId()] = frontpage
|
pages[dw.getId()] = frontpage
|
||||||
|
|
||||||
for pagename, page in pages.items():
|
for pagename, page in pages.items():
|
||||||
|
print "%s" % page.getPagePath()
|
||||||
res = convertfile(page.getPagePath(), output = pagename, overwrite = overwrite)
|
res = convertfile(page.getPagePath(), output = pagename, 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