diff MoinMoin/scripts/moin_dump.py @ 68:0bbc39b09f95

optimize backup by sorting, refactor some easy stuff to use redirectedOutput imported from: moin--main--1.5--patch-70
author Thomas Waldmann <tw@waldmann-edv.de>
date Mon, 03 Oct 2005 08:41:37 +0000
parents f0af060fb82b
children 95dd6aa5f3e5
line wrap: on
line diff
--- a/MoinMoin/scripts/moin_dump.py	Sun Oct 02 06:39:02 2005 +0000
+++ b/MoinMoin/scripts/moin_dump.py	Mon Oct 03 08:41:37 2005 +0000
@@ -139,11 +139,7 @@
                 request.page = page
                 try:
                     request.reset()
-                    out = StringIO.StringIO()
-                    request.redirect(out)
-                    page.send_page(request, count_hit=0, content_only=1)
-                    pagehtml = out.getvalue()
-                    request.redirect()
+                    pagehtml = request.redirectedOutput(page.send_page, request, count_hit=0, content_only=1)
                 except:
                     errcnt = errcnt + 1
                     print >>sys.stderr, "*** Caught exception while writing page!"