view MoinMoin/macro/ @ 1529:76b4d2324d25

MoinMoin should not record the homepage links as pagelinks, fixes MoinMoinBugs/PageLinksIncludeUnrelatedLinks.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Tue, 05 Sep 2006 00:29:59 +0200
parents 4eb66637ccd0
children d6b93908e4d9
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - Create list of LikePages

    @copyright: 2004 by Johannes Berg <>
    @license: GNU GPL, see COPYING for details.

Dependencies = ['namespace']

from MoinMoin.action import LikePages

def execute(macro, args):
    request = macro.request
    pagename =

    # Get matches
    start, end, matches = LikePages.findMatches(pagename, request)

    # Render matches
    if matches and not isinstance(matches, (str, unicode)):
        return request.redirectedOutput(LikePages.showMatches, pagename, request, start, end, matches, False)

    return args