comparison 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
comparison
equal deleted inserted replaced
67:24ec4c3430cf 68:0bbc39b09f95
137 pagehtml = '' 137 pagehtml = ''
138 page = Page.Page(request, pagename) 138 page = Page.Page(request, pagename)
139 request.page = page 139 request.page = page
140 try: 140 try:
141 request.reset() 141 request.reset()
142 out = StringIO.StringIO() 142 pagehtml = request.redirectedOutput(page.send_page, request, count_hit=0, content_only=1)
143 request.redirect(out)
144 page.send_page(request, count_hit=0, content_only=1)
145 pagehtml = out.getvalue()
146 request.redirect()
147 except: 143 except:
148 errcnt = errcnt + 1 144 errcnt = errcnt + 1
149 print >>sys.stderr, "*** Caught exception while writing page!" 145 print >>sys.stderr, "*** Caught exception while writing page!"
150 print >>errlog, "~" * 78 146 print >>errlog, "~" * 78
151 print >>errlog, file # page filename 147 print >>errlog, file # page filename