IncludeUrlContentWiki

Description

I copied the latter part of the code from http://moinmo.in/MacroMarket/MiniPage -- counterpoke

I updated the macro by converting all read text into unicode. This allows this macro to parse macros embedded in the file it reads. Without this fix, when someone includes a macro in the read file, wikiutil would freak out in function invoke_extension_function. --counterpoke

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

IncludeUrlContentWiki-1.8.py

1.8

Before moving to /data/macro, rename to IncludeUrlContentWiki.py

IncludeUrlContentWiki-1.6.py

1.6

Before moving to /data/macro, rename to IncludeUrlContentWiki.py

IncludeUrlContentWiki.py

1.3

Usage

<<IncludeUrlContentWiki(http://foo.com/wikimarkup)>>

Example

<<IncludeUrlContentWiki(http://googl.com)>>

counterpoke, StevePoole

License

This macro is released under the terms of the GNU GPL.

Bugs

The Macro breaks if the included wiki markup cannot be converted using by unicode() (happened for a moin wiki page that i'v included using http://server.domain.de/mywiki/FrontPage?action=raw)

# possible fix
text = unicode(text,encoding='utf-8',errors='replace')

Discussion

MoinMoin: MacroMarket/IncludeUrlContentWiki (last edited 2010-11-26 14:19:59 by dsl91ECD813)