view MoinMoin/macro/AbandonedPages.py @ 6087:538b7d0119cd

tagged release 1.9.8
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 17 Oct 2014 21:53:46 +0200
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)