view tests/ @ 336:c39981463fb2

fixed MoinMoinBugs/ErraticGetValMacroExpansion. Corrected REs for Dict and Group pages. Use spaces insted of \s because this matches newlines! imported from: moin--main--1.5--patch-340
author Florian Festi <>
date Mon, 19 Dec 2005 12:49:11 +0000
parents 77665d8e2254
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
import xmlrpclib

if __name__ == "__main__":

    server = xmlrpclib.ServerProxy('')
    print server

        frontpage = server.getPage('FrontPage').data.decode('UTF-8')
        print "Length of FrontPage:", len(frontpage)
        print "Start of FrontPage:", repr(frontpage[:50]), "..."
        print "End of FrontPage:", "...", repr(frontpage[-50:])
        print "Interface Version:", server.getRPCVersionSupported()
        print "Number of Pages:", len(server.getAllPages())
    except xmlrpclib.Error, v:
        print "ERROR", v