~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/action/SpellCheck.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    from MoinMoin.PageEditor import PageEditor
103
103
    # get the new words as a string (if any are marked at all)
104
104
    try:
105
 
        newwords = request.form.getlist('newwords')
 
105
        newwords = request.form['newwords']
106
106
    except KeyError:
107
107
        # no new words checked
108
108
        return
187
187
 
188
188
        # add a form containing the bad words
189
189
        if own_form:
190
 
            msg = msg + ('<form method="post" action="%s">\n'
191
 
                         '<input type="hidden" name="action" value="%s">\n') % (request.href(page.page_name), action_name)
 
190
            msg = msg + ('<form method="post" action="%s/%s">\n'
 
191
                         '<input type="hidden" name="action" value="%s">\n') % (request.getScriptname(), wikiutil.quoteWikinameURL(page.page_name), action_name)
192
192
 
193
193
        checkbox = '<input type="checkbox" name="newwords" value="%(word)s">%(word)s&nbsp;&nbsp;'
194
194
        msg = msg + (