view MoinMoin/macro/ @ 3241:03b3c6fd70e3

changed to new arg parser
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 11 Mar 2008 00:04:39 +0100
parents 907b9e60c232
children 886b8969dbc6
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 macro_AttachInfo(macro, pagename=None):
    """ generates info how much attachments stored on a page """
    if not pagename:
        pagename =
    return info(pagename, macro.request)