~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/macro/Login.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: iso-8859-1 -*-
2
 
"""
3
 
    MoinMoin - login form
4
 
 
5
 
    @copyright: 2005-2006 by Radomirs Cirskis <nad2000@gmail.com>
6
 
    @license: GNU GPL, see COPYING for details.
7
 
"""
8
 
from MoinMoin.widget import html
9
 
from MoinMoin import userform
10
 
 
11
 
def execute(macro, args):
12
 
    """ Show the login form (but only when not logged in) """
13
 
    request = macro.request
14
 
    if request.user.valid:
15
 
        data = u''
16
 
    else:
17
 
        data = userform.getLogin(request)
18
 
    return data
19