view MoinMoin/macro/GetTextFormatted.py @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <tw-public@gmx.de>
date Thu, 22 Sep 2005 15:09:50 +0000
parents
children
line wrap: on
line source

# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - Load I18N Text and format it

    @copyright: 2004 by Johannes Berg <johannes@sipsolutions.de>
    @license: GNU GPL, see COPYING for details.
"""

Dependencies = ["language"]

from MoinMoin import config

def execute(macro, args):
    d = {
        ## add other allowed stuff here
        'page_template_regex': config.page_template_regex,
    }

    return macro.formatter.text(
        macro.request.getText(args).replace('<br>', '\n') % d
    )