comparison MoinMoin/action/edit.py @ 4424:5ad5753ae311

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 16 Nov 2008 22:20:21 +0100
parents 40acd13fb3d6
children 6f6736e7683c
comparison
equal deleted inserted replaced
4423:135d4a7dc09d 4424:5ad5753ae311
31 if request.user.valid: 31 if request.user.valid:
32 editor = request.user.editor_default 32 editor = request.user.editor_default
33 if editor not in valideditors: 33 if editor not in valideditors:
34 editor = request.cfg.editor_default 34 editor = request.cfg.editor_default
35 35
36 editorparam = request.form.get('editor', editor) 36 editorparam = request.values.get('editor', editor)
37 if editorparam == "guipossible": 37 if editorparam == "guipossible":
38 lasteditor = editor 38 lasteditor = editor
39 elif editorparam == "textonly": 39 elif editorparam == "textonly":
40 editor = lasteditor = 'text' 40 editor = lasteditor = 'text'
41 else: 41 else: