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

« back to all changes in this revision

Viewing changes to MoinMoin/action/dumpform.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: iso-8859-1 -*-
 
2
"""
 
3
    MoinMoin - dump form data we received (debugging)
 
4
 
 
5
    @copyright: 2000-2004 Juergen Hermann <jh@web.de>,
 
6
                2006 MoinMoin:ThomasWaldmann
 
7
    @license: GNU GPL, see COPYING for details.
 
8
"""
 
9
from MoinMoin import util
 
10
 
 
11
def execute(pagename, request):
 
12
    """ dump the form data we received in this request for debugging """
 
13
    data = util.dumpFormData(request.form)
 
14
 
 
15
    request.emit_http_headers()
 
16
    request.write("<html><body>%s</body></html>" % data)
 
17