/usr/share/pyshared/MoinMoin/macro/AttachInfo.py is in python-moinmoin 1.9.3-1ubuntu2.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """
    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 = macro.formatter.page.page_name
    return info(pagename, macro.request)
 |