view MoinMoin/macro/AbandonedPages.py @ 6125:07782b362ef7

bump version in moin.spec
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 31 Oct 2016 20:52:05 +0100
parents 524db6237b48
children
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - AbandonedPages Macro

    This is a list of pages that were not edited for a long time
    according to the edit log; if you shortened the log, the displayed
    information may not be what you expect.

    @copyright: 2001 Juergen Hermann <jh@web.de>
    @license: GNU GPL, see COPYING for details.
"""

from MoinMoin.macro import RecentChanges

def macro_AbandonedPages(macro):
    if macro.request.isSpiderAgent: # reduce bot cpu usage
        return ''
    return RecentChanges.macro_RecentChanges(macro, abandoned=True)