changeset 2707:2d93b9a28ea3

PageEditor.sendEditor: bug fix of emitting http_headers twice if edit_locking is set to 'lock x'
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 21 Aug 2007 21:18:23 +0200
parents d2d4e74978bd
children 5092edd82058 d28a4f5d0003
files MoinMoin/PageEditor.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Tue Aug 21 18:47:29 2007 +0200
+++ b/MoinMoin/PageEditor.py	Tue Aug 21 21:18:23 2007 +0200
@@ -155,8 +155,6 @@
         request = self.request
         form = request.form
         _ = self._
-        request.disableHttpCaching(level=2)
-        request.emit_http_headers()
 
         raw_body = ''
         msg = None
@@ -199,6 +197,10 @@
             self.send_page(msg=msg)
             return
 
+        # Emmit http_headers after checks (send_page)
+        request.disableHttpCaching(level=2)
+        request.emit_http_headers()
+
         # check if we want to load a draft
         use_draft = None
         if 'button_load_draft' in form: