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

« back to all changes in this revision

Viewing changes to MoinMoin/xmlrpc/WhoAmI.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
1
# -*- coding: iso-8859-1 -*-
2
2
"""
3
3
    MoinMoin - Tells who you are and whether the wiki trusts you.
4
 
               
5
4
 
6
 
    @copyright: 2005 by Thomas Waldmann (MoinMoin:ThomasWaldmann)
 
5
    @copyright: 2005 MoinMoin:ThomasWaldmann
7
6
    @license: GNU GPL, see COPYING for details.
8
7
"""
9
8
 
13
12
    if not username:
14
13
        username = "<unknown user>"
15
14
    valid = request.user.valid
16
 
    trusted = request.user.trusted
17
 
    result = "You are %s. valid=%d, trusted=%d." % (username.encode("utf-8"), valid, trusted)
 
15
    result = "You are %s. valid=%d." % (username.encode("utf-8"), valid)
18
16
    return xmlrpcobj._outstr(result)
19
17