Back to index

moin  1.9.0~rc2
AttachInfo.py
Go to the documentation of this file.
00001 """
00002     MoinMoin - AttachInfo Macro
00003 
00004     A macro to produce information about attached pages
00005 
00006     Usage: <<AttachInfo>>
00007 
00008     @copyright: 2004 Jacob Cohen, Nigel Metheringham
00009     @license: GNU GPL, see COPYING for details
00010 """
00011 
00012 from MoinMoin.action.AttachFile import info
00013 
00014 def macro_AttachInfo(macro, pagename=None):
00015     """ generates info how much attachments stored on a page """
00016     if not pagename:
00017         pagename = macro.formatter.page.page_name
00018 
00019     return info(pagename, macro.request)
00020 
00021