view tests/ @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <>
date Thu, 22 Sep 2005 15:09:50 +0000
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