view MoinMoin/action/UserPreferences.py @ 483:a594780d5e64

Login macro, login/logout/UserPreferences actions imported from: moin--main--1.5--patch-487
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 19 Mar 2006 01:21:38 +0000
parents
children
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - UserPreferences action
    
    This is a simple plugin, that adds a "UserPreferences" action.
    This action will display the UserPreferences page (or appropriate
    page in the reader's language), so that the user can login, or
    change his/her preferences.

    However, as it is an action, the page that is displayed is not 
    changed. After submitting the form, the user is presented the
    same page he/she was seeing before, and the trail is not modified.

    @copyright: 2006 by Radomir Dopieralski
    @license: GNU GPL, see COPYING for details.
"""

from MoinMoin import wikiutil

def execute(pagename, request):
    page = wikiutil.getSysPage(request, 'UserPreferences')
    page.send_page(request)