view data/plugin/macro/ @ 654:8c828d7b6cd4 tip

PDFList: check for pyPdf.utils.PdfReadError
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 07 Dec 2016 14:27:25 +0100
parents 127da830be6c
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - macro to embed content of an other (wiki) page


    @copyright: 2010-2016 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)