/usr/share/pyshared/MoinMoin/xmlrpc/WhoAmI.py is in python-moinmoin 1.9.3-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - Tells who you are and whether the wiki trusts you.
@copyright: 2005 MoinMoin:ThomasWaldmann
@license: GNU GPL, see COPYING for details.
"""
def execute(xmlrpcobj, *args):
request = xmlrpcobj.request
username = request.user.name
if not username:
username = "<unknown user>"
valid = request.user.valid
result = "You are %s. valid=%d." % (username.encode("utf-8"), valid)
return xmlrpcobj._outstr(result)
|