Contents
IncludeUrlContentWiki
Description
Get the content from an URL, process it as wiki markup, and return those formatted results. I personally use this in cases where I have a web server process to dynamically generate content that relies on wiki features like macros, smileys, table layout rules, etc.
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 |
|
1.8 |
Before moving to /data/macro, rename to IncludeUrlContentWiki.py |
|
|
1.6 |
Before moving to /data/macro, rename to IncludeUrlContentWiki.py |
|
|
1.3 |
|
Usage
<<IncludeUrlContentWiki(http://foo.com/wikimarkup)>>
Example
<<IncludeUrlContentWiki(http://googl.com)>>
Copyright
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')