Details

Applies to
1.9.3-1+squeeze2
Purpose
streamline the despam action
Description
allows selecting an author right away after despamming the first one, making despams 2 clicks instead of 4 clicks if you despam more than one author.

Patch

Quite trivial, so not bothering with an attach:

--- /usr/share/pyshared/MoinMoin/action/Despam.py.orig  2012-12-09 17:31:38.761362489 -0500
+++ /usr/share/pyshared/MoinMoin/action/Despam.py       2012-12-09 17:26:34.498519057 -0500
@@ -204,6 +204,7 @@
     if (request.method == 'POST' and ok and
         wikiutil.checkTicket(request, request.form.get('ticket', ''))):
         revert_pages(request, editor, timestamp)
+        request.write(show_editors(request, pagename, timestamp))
     elif editor:
         show_pages(request, pagename, editor, timestamp)
     else:

Note that optimally, we could make this O(1)+4 by allowing the user to choose multiple authors, but this would be harder and the patch is good enough for my needs. We are basically O(2)+4 instead of just O(4). -- TheAnarcat 2012-12-09 22:37:19

Discussion

Plan


CategoryMoinMoinPatch

MoinMoin: MoinMoinPatch/DespamStreamliningOne (last edited 2012-12-24 22:52:22 by ThomasWaldmann)