[moin-user] [E] Re: Looking for MiniPage macro for Moin 1.9

james.wagner at verizon.com james.wagner at verizon.com
Tue Oct 13 14:43:51 EDT 2020


Resending with the correct moin-user address.

James.

-----Original Message-----
From: Wagner, James J 
Sent: Tuesday, October 13, 2020 12:42 PM
To: Lars Kruse <lists at sumpfralle.de>; "moin-user at python.org\" <moin-user at python.org>"@mx0a-0024a201.pphosted.com
Cc: Wagner, James J <james.wagner at one.verizon.com>
Subject: RE: [moin-user] [E] Re: Looking for MiniPage macro for Moin 1.9

Lars,

I know it looks like the version contained in the link is older, but it is the version that works. The original version I had was the 1.8.4-6 version:

    MODIFICATION HISTORY:
        Version 1.3.3-1
        Version 1.3.3-2 Updated for Moin1.6
        Version 1.6.0-3 refactored
        Version 1.7.1-5 refactored for 1.7
        Version 1.8.4-6 refactored for 1.8.4 added parameter escaping
        @copyright: 2005-2008 by Reimar Bauer (R.Bauer at fz-juelich.de)
        @copyright: 2011 by Remco Boerma (r.boerma at drenthecollege.nl)
        @license: GNU GPL, see COPYING for details.

and that is the version that did _now_ work with 1.9. I think it is because of the escaping. The much smaller version, without the escape code works. Just to verify, I've copied the version that works here.

Thanks,
James.

# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - MiniPage Macro

    This macro is used to write multi line markup into a table.
    Add a linefeed for a new line e.g.
    ||Buttons ||<<MiniPage( * Redo\n * Undo)>><<MiniPage( * Quit)>>||
    ||Section ||<<MiniPage(= heading 1 =)>><<MiniPage(== heading 2 ==)>>||

    @copyright: 2005-2012 by MoinMoin:ReimarBauer
    @license: GNU GPL, see COPYING for details.
"""
from MoinMoin import wikiutil

def execute(macro, text):
     request = macro.request
     text = ''.join(text)
     text = text.replace('\\n', '\n')
     Parser = wikiutil.searchAndImportPlugin(request.cfg, "parser", request.page.pi['format'])
     return wikiutil.renderText(request, Parser, text)



-----Original Message-----
From: Lars Kruse [mailto:lists at sumpfralle.de] 
Sent: Saturday, October 03, 2020 7:15 AM
To: Wagner, James J <james.wagner at one.verizon.com>; "moin-user at python.org\" <moin-user at python.org>"@mx0a-0024a201.pphosted.com
Subject: Re: [moin-user] [E] Re: Looking for MiniPage macro for Moin 1.9

Hello James,


Am Fri, 2 Oct 2020 23:36:00 +0000
schrieb James J Wagner via moin-user <moin-user at python.org>:

> Here is the full url:
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__web.archive.org_web_20140915221259_http-3A__hg.moinmo.in_moin_extensions_file_tip_data_plugin_macro_MiniPage.py&d=DwICAg&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=1yO6HiBOn7V7BOkEODddd1LJlH3stVIUtVM6286z-9A&m=LE6JyEfrStdJBZTVmVs8VP5WNeicHGo6xl_1aP2rCTA&s=16Hq146sTAmNdxP-jPq_MNaUJbqj3_0t8m3QfWfqIoQ&e= 
> 
> 
> I copied this to my macro area and the macro now works.

I was tempted to update the MiniPage download link [1], but I noticed that the
above links seems to contain a smaller/older version of the plugin, compared to
MiniPage-1.8.4-6.py [2]. At least it lacks a part of the documentation header
and one line regarding escaping of special characters.

Thus I would suggest to simply remove the first line from the download table [1]
and mention the compatibility of MiniPage-1.8.4-6.py with moinmoin 1.9.

@James: could you please verify, that MiniPage-1.8.4-6.py [2] also works for
you?

Cleaning up the outdated link would probably be helpful for others.

Cheers,
Lars


[1] https://urldefense.proofpoint.com/v2/url?u=https-3A__moinmo.in_MacroMarket_MiniPage&d=DwICAg&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=1yO6HiBOn7V7BOkEODddd1LJlH3stVIUtVM6286z-9A&m=LE6JyEfrStdJBZTVmVs8VP5WNeicHGo6xl_1aP2rCTA&s=qtGeApMZpnXvoQuHKiZLWQK552EDfwiQqnAy4r41FDg&e= 
[2]
https://urldefense.proofpoint.com/v2/url?u=https-3A__moinmo.in_MacroMarket_MiniPage-3Faction-3DAttachFile-26do-3Dview-26target-3DMiniPage-2D1.8.4-2D6.py&d=DwICAg&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=1yO6HiBOn7V7BOkEODddd1LJlH3stVIUtVM6286z-9A&m=LE6JyEfrStdJBZTVmVs8VP5WNeicHGo6xl_1aP2rCTA&s=_GP5s4O0eJsv5fi0hppskm7vzbBIdTv6kdF1XG3Gkm8&e= 


More information about the moin-user mailing list