Back to index

moin  1.9.0~rc2
MoinMoin.macro.AttachList Namespace Reference


def macro_AttachList

Detailed Description

MoinMoin - AttachList Macro

A macro to produce a list of attached files

Usage: <<AttachList([pagename,mime_type])>>

If pagename isn't set, the current pagename is used.
If mime_type isn't given, all files are listed.

@copyright: 2004 Jacob Cohen, Nigel Metheringham,
            2006 MoinMoin:ReimarBauer
@license: GNU GPL, see COPYING for details.

Function Documentation

def MoinMoin.macro.AttachList.macro_AttachList (   macro,
  pagename = None,
  mime_type = u'*' 

Definition at line 18 of file

00019 def macro_AttachList(macro, pagename=None, mime_type=u'*'):
00020     # defaults if we don't get anything better
00021     if not pagename:
00022         pagename =
00024     return _build_filelist(macro.request, pagename, 0, 1, mime_type=mime_type)

Here is the call graph for this function: