view MoinMoin/macro/Login.py @ 1550:a4f0632414da

using request.cfg.cache more
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 14 Sep 2006 22:49:42 +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