view MoinMoin/filter/ @ 5928:d97e3b0d6b49

reorder input fields in recoverpass form, to help browsers remember the user name (not the recovery token)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 21 Jan 2013 16:24:06 +0100
parents 0b220c040be4
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - text/xml file Filter

    @copyright: 2006 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.

import re

from MoinMoin import log
logging = log.getLogger(__name__)

from MoinMoin.filter.text import execute as textfilter

rx_stripxml = re.compile("<[^>]*?>", re.DOTALL|re.MULTILINE)

def execute(indexobj, filename):
    data = textfilter(indexobj, filename)
        data = " ".join(rx_stripxml.sub(" ", data).split())
    except RuntimeError, err:
        data = ""
    return data