view MoinMoin/scripts/xmlrpc-tools/ @ 491:be33ecd58d4e

add run() methods to scripts, include version info into MoinMoin/ for epydoc imported from: moin--main--1.5--patch-495
author Thomas Waldmann <>
date Wed, 22 Mar 2006 09:55:32 +0000
parents 56d74783ea93
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

def run():
    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()

if __name__ == "__main__":