view MoinMoin/scripts/xmlrpc-tools/ @ 184:56d74783ea93

WhoAmI wiki xmlrpc plugin and client script imported from: moin--main--1.5--patch-186
author Thomas Waldmann <>
date Thu, 03 Nov 2005 23:00:02 +0000
children be33ecd58d4e
line wrap: on
line source

#!/usr/bin/env python
This script checks whether the wiki authenticates and trusts you.

It calls the xmlrpc plugin. To use http auth, you need to configure
the srcwiki with auth = [http, moin_cookie] in its wikiconfig.

GPL software, 2005 Thomas Waldmann

user = "ThomasWaldmann"
password = "wrong"

import sys, xmlrpclib
sys.path.insert(0, '../../..')
from import BasicAuthTransport

srctrans = BasicAuthTransport(user, password)
srcwiki = xmlrpclib.ServerProxy("", transport=srctrans)

print srcwiki.WhoAmI()