view data/plugin/macro/ @ 625:f4e63b74b969

FormSubmit: adapt to werkzeug MultiDict
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Mar 2013 17:47:30 +0100
parents 78ca2464edf9
children 127da830be6c
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - macro to embed content of an other (wiki) page


    @copyright: 2010 by MoinMoin:ReimarBauer
    @license: GNU GPL, see COPYING for details.
import urllib2

def macro_EmbedContent(macro, url=u""):
    fmt = macro.formatter
    if url:
        uo = urllib2.urlopen(url)
        html =
        return fmt.rawHTML(html)