changeset 4570:e86a7b66eb0e

Despam: must use request.values because it also does GET requests, add logging/debug code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 11 Feb 2009 02:38:25 +0100
parents 3caaa8c74c41
children 41f1c2922ae7
files MoinMoin/action/Despam.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/Despam.py	Wed Feb 11 02:34:33 2009 +0100
+++ b/MoinMoin/action/Despam.py	Wed Feb 11 02:38:25 2009 +0100
@@ -12,6 +12,9 @@
 
 import time
 
+from MoinMoin import log
+logging = log.getLogger(__name__)
+
 from MoinMoin.logfile import editlog
 from MoinMoin.util.dataset import TupleDataset, Column
 from MoinMoin.widget.browser import DataBrowserWidget
@@ -182,9 +185,10 @@
         request.theme.add_msg(_('You are not allowed to use this action.'), "error")
         return Page.Page(request, pagename).send_page()
 
-    editor = request.form.get('editor')
+    editor = request.values.get('editor')
     timestamp = time.time() - DAYS * 24 * 3600
     ok = request.form.get('ok', 0)
+    logging.debug("editor: %r ok: %r" % (editor, ok))
 
     request.theme.send_title("Despam", pagename=pagename)
     # Start content (important for RTL support)