view MoinMoin/macro/AttachInfo.py @ 2711:24bc1ad80e80

macro.AttachInfo: fixed docstring
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 22 Aug 2007 12:07:38 +0200
parents 4eb66637ccd0
children 907b9e60c232
line wrap: on
line source
"""
    MoinMoin - AttachInfo 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