Back to index

moin  1.9.0~rc2
HelloWorld.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 """
00003 This script is a sample for xmlrpc calls.
00004 
00005 It calls the HelloWorld.py xmlrpc plugin.
00006 
00007 GPL software, 2003-08-10 Thomas Waldmann
00008 """
00009 
00010 def run():
00011     import xmlrpclib
00012     srcwiki = xmlrpclib.ServerProxy("http://master.moinmo.in/?action=xmlrpc2")
00013     print srcwiki.HelloWorld("Hello Wiki User!\n")
00014 
00015 if __name__ == "__main__":
00016     run()
00017