Back to index

moin  1.9.0~rc2
Functions
MoinMoin.script.old.xmlrpc-tools.WhoAmI Namespace Reference

Functions

def run

Function Documentation

def MoinMoin.script.old.xmlrpc-tools.WhoAmI.run ( )

Definition at line 11 of file WhoAmI.py.

00011 
00012 def run():
00013     user = "ThomasWaldmann"
00014     password = "wrong"
00015 
00016     import sys, xmlrpclib
00017     sys.path.insert(0, '../../..')
00018     from MoinMoin.support.BasicAuthTransport import BasicAuthTransport
00019 
00020     srctrans = BasicAuthTransport(user, password)
00021     srcwiki = xmlrpclib.ServerProxy("http://master.moinmo.in/?action=xmlrpc2", transport=srctrans)
00022 
00023     print srcwiki.WhoAmI()