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

« back to all changes in this revision

Viewing changes to MoinMoin/util/__init__.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:
83
83
        return pattern[1:-1]
84
84
    return pattern[1:]
85
85
 
 
86
def dumpFormData(form):
 
87
    """ Dump the form data for debugging purposes
 
88
    """
 
89
    from MoinMoin import wikiutil
 
90
 
 
91
    result = '<dt><strong>Form entries</strong></dt>'
 
92
    for k in form:
 
93
        v = form.get(k, ["<empty>"])
 
94
        v = "|".join(v)
 
95
        result = result + '<dd><em>%s</em>=%s</dd>' % (k, wikiutil.escape(v))
 
96
 
 
97
    return result
 
98
 
86
99
def IsWin9x():
87
100
    """ Returns true if run on Windows 95, 98 or ME. """
88
101
    if hasattr(sys, 'getwindowsversion'):