comparison MoinMoin/script/xmlrpc/retrieve.py @ 2939:6259bb49366c

trivial xmlrpc examples (scripts)
author Johannes Berg <johannes AT sipsolutions DOT net>
date Fri, 02 Nov 2007 12:43:42 +0000
parents
children 2572688e031a
comparison
equal deleted inserted replaced
2938:bdd5df911941 2939:6259bb49366c
1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - page contents retriever
4
5 @copyright: 2007 MoinMoin:JohannesBerg
6 @license: GNU GPL, see COPYING for details.
7 """
8
9 import xmlrpclib
10
11 from MoinMoin.script import MoinScript
12
13 class PluginScript(MoinScript):
14 def __init__(self, argv, def_values):
15 MoinScript.__init__(self, argv, def_values)
16 self.argv = argv
17
18 def mainloop(self):
19 s = xmlrpclib.ServerProxy(self.argv[0])
20 print s.getPage(self.argv[1])