view MoinMoin/macro/AttachInfo.py @ 2999:e94b940f3a84

add a comment about listen backlog to moin.fcg (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 17:32:33 +0100
parents 907b9e60c232
children 03b3c6fd70e3
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