diff MoinMoin/PageGraphicalEditor.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 eb3b18ffb28b
children 1738cbba372c
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sun Oct 02 06:39:02 2005 +0000
+++ b/MoinMoin/PageGraphicalEditor.py	Mon Oct 03 08:41:37 2005 +0000
@@ -290,12 +290,8 @@
         from MoinMoin.formatter.text_gedit import Formatter
         self.formatter = Formatter(request)
         self.formatter.page = self
-
-        output = StringIO()
-        request.redirect(output)
-        self.send_page_content(request, Parser, raw_body, do_cache=False)
-        request.redirect()
-        output = repr(output.getvalue())
+        output = request.redirectedOutput(self.send_page_content, request, Parser, raw_body, do_cache=False)
+        output = repr(output)
         if output[0] == 'u':
             output = output[1:]
         request.write(output)