From 0aa455c2054b4ffc2e5ba5fd204b0fd051e4a538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 22 Sep 2012 21:46:46 +0200 Subject: [PATCH] print out converted pages --- moin2doku.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/moin2doku.py b/moin2doku.py index 95df5c1..d2e0140 100755 --- a/moin2doku.py +++ b/moin2doku.py @@ -159,8 +159,8 @@ def convertfile(pagedir, output = None, overwrite = False): page = Page(request, pagename) if page.isUnderlayPage(): - print "SKIP UNDERLAY" - return + print "SKIP UNDERLAY: %s" % pagename + return False current_exists = page.exists() current_rev = page.current_rev() @@ -222,7 +222,7 @@ def convertfile(pagedir, output = None, overwrite = False): if old_page != ID: redirect_map[old_page] = ID - return 1 + return True # # "main" starts here @@ -303,8 +303,10 @@ else: pages[dw.getId()] = frontpage for pagename, page in pages.items(): + print "%s" % page.getPagePath() res = convertfile(page.getPagePath(), output = pagename, overwrite = overwrite) if res != None: + print "Converted: %s" % pagename converted += 1 print "Processed %d files, converted %d" % (len(pages), converted)