view MoinMoin/macro/AttachInfo.py @ 1529:76b4d2324d25

MoinMoin should not record the homepage links as pagelinks, fixes MoinMoinBugs/PageLinksIncludeUnrelatedLinks.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Tue, 05 Sep 2006 00:29:59 +0200
parents 4eb66637ccd0
children 24bc1ad80e80 388204baf00f
line wrap: on
line source
"""
    MoinMoin - AttachList Macro

    A macro to produce information about attached pages

    Usage: [[AttachInfo]]

    @copyright: 2004 Jacob Cohen, Nigel Metheringham
    @license: GNU GPL, see COPYING for details
"""

from MoinMoin.action.AttachFile import info

def execute(macro, args):
    pagename = macro.formatter.page.page_name
    if args:
        pagename = args
    result = info(pagename, macro.request)
    return result