view MoinMoin/macro/Login.py @ 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 a594780d5e64
children 2077ed6974d7
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - login form

    @copyright: 2005-2006 by Radomirs Cirskis <nad2000@gmail.com>
    @license: GNU GPL, see COPYING for details.
"""
from MoinMoin.widget import html
from MoinMoin import userform

def execute(macro, args):
    """ Show the login form (but only when not logged in) """
    request = macro.request
    if request.user.valid:
        data = u''
    else:
        data = userform.getLogin(request)
    return data