Back to index

moin  1.9.0~rc2
Functions
MoinMoin.xmlrpc.WhoAmI Namespace Reference

Functions

def execute

Function Documentation

def MoinMoin.xmlrpc.WhoAmI.execute (   xmlrpcobj,
  args 
)

Definition at line 9 of file WhoAmI.py.

00009 
00010 def execute(xmlrpcobj, *args):
00011     request = xmlrpcobj.request
00012     username = request.user.name
00013     if not username:
00014         username = "<unknown user>"
00015     valid = request.user.valid
00016     result = "You are %s. valid=%d." % (username.encode("utf-8"), valid)
00017     return xmlrpcobj._outstr(result)
00018