comparison MoinMoin/action/SpellCheck.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents d0d9fbc0f0ee
children 9c6900a92a64
comparison
equal deleted inserted replaced
3039:744c46c1f869 3040:8608b258f8e6
185 # figure out what this action is called 185 # figure out what this action is called
186 action_name = os.path.splitext(os.path.basename(__file__))[0] 186 action_name = os.path.splitext(os.path.basename(__file__))[0]
187 187
188 # add a form containing the bad words 188 # add a form containing the bad words
189 if own_form: 189 if own_form:
190 msg = msg + ('<form method="post" action="">\n' 190 msg = msg + ('<form method="post" action="%s/%s">\n'
191 '<input type="hidden" name="action" value="%s">\n') % action_name 191 '<input type="hidden" name="action" value="%s">\n') % (request.getScriptname(), wikiutil.quoteWikinameURL(page.page_name), action_name)
192 192
193 checkbox = '<input type="checkbox" name="newwords" value="%(word)s">%(word)s&nbsp;&nbsp;' 193 checkbox = '<input type="checkbox" name="newwords" value="%(word)s">%(word)s&nbsp;&nbsp;'
194 msg = msg + ( 194 msg = msg + (
195 " ".join([checkbox % {'word': wikiutil.escape(w), } for w in badwords]) + 195 " ".join([checkbox % {'word': wikiutil.escape(w), } for w in badwords]) +
196 '<p><input type="submit" name="button_newwords" value="%s"></p>' % 196 '<p><input type="submit" name="button_newwords" value="%s"></p>' %