~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to MoinMoin/action/userprefs.py

  • Committer: Bazaar Package Importer
  • Author(s): Sivan Greenberg
  • Date: 2006-07-09 19:28:02 UTC
  • Revision ID: james.westby@ubuntu.com-20060709192802-oaeuvt4v3e9300uj
Tags: 1.5.3-1ubuntu1
* Merge new debian version.
* Reapply Ubuntu changes:
    + debian/rules:
      - Comment out usage of control.ubuntu.in (doesn't fit!).
    + debian/control.in:
      - Dropped python2.3 binary package.
    + debian/control:
      - Dropped python2.3 binary, again.
      - Dropped python2.3-dev from Build-Depends-Indep.
    + debian/patches/001-attachment-xss-fix.patch:
      - Dropped this patch. It's now in upstream's distribution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: iso-8859-1 -*-
 
2
"""
 
3
    MoinMoin - UserPreferences action
 
4
    
 
5
    This is a simple plugin, that adds a "UserPreferences" action.
 
6
    This action will display the UserPreferences page (or appropriate
 
7
    page in the reader's language), so that the user can login, or
 
8
    change his/her preferences.
 
9
 
 
10
    However, as it is an action, the page that is displayed is not 
 
11
    changed. After submitting the form, the user is presented the
 
12
    same page he/she was seeing before, and the trail is not modified.
 
13
 
 
14
    @copyright: 2006 by Radomir Dopieralski
 
15
    @license: GNU GPL, see COPYING for details.
 
16
"""
 
17
 
 
18
from MoinMoin import wikiutil
 
19
 
 
20
def execute(pagename, request):
 
21
    page = wikiutil.getSysPage(request, 'UserPreferences')
 
22
    page.send_page(request)
 
23