changeset 5671:172146fe48a2

fix broken changeset f59d02d10935
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 11 May 2010 23:08:11 +0200
parents f59d02d10935
children 203afc609f8a
files MoinMoin/action/edit.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/edit.py	Tue May 11 22:28:21 2010 +0200
+++ b/MoinMoin/action/edit.py	Tue May 11 23:08:11 2010 +0200
@@ -140,11 +140,10 @@
             savetext += ' '
         savetext += category + u'\n' # Should end with newline!
 
-    if request.cfg.edit_ticketing:
-        ticket = request.form.get('ticket', '')
-        if not wikiutil.checkTicket(request, ticket):
-            request.theme.add_msg(_('Please use the interactive user interface to use action %(actionname)s!') % {'actionname': 'edit' }, "error")
-            pg.sendEditor(preview=savetext, comment=comment, staytop=1)
+    if (request.cfg.edit_ticketing and
+        not wikiutil.checkTicket(request, request.form.get('ticket', ''))):
+        request.theme.add_msg(_('Please use the interactive user interface to use action %(actionname)s!') % {'actionname': 'edit' }, "error")
+        pg.sendEditor(preview=savetext, comment=comment, staytop=1)
 
     # Preview, spellcheck or spellcheck add new words
     elif ('button_preview' in request.form or