1
# -*- coding: iso-8859-1 -*-
3
MoinMoin - page contents retriever
5
@copyright: 2006 MoinMoin:ThomasWaldmann
6
@license: GNU GPL, see COPYING for details.
11
from MoinMoin.script import MoinScript
13
class PluginScript(MoinScript):
17
This tool allows you to print out the contents of a page via xmlrpc.
19
Detailed Instructions:
20
======================
21
General syntax: moin [options] xmlrpc retrieve [retrieve-options]
23
[options] usually should be:
24
--config-dir=/path/to/my/cfg/ --wiki-url=wiki.example.org/
26
[retrieve-options] see below:
27
0. To retrieve the page 'FrontPage' from the wiki '192.168.0.1' which is
29
moin ... xmlrpc retrieve 192.168.0.1 FrontPage
32
def __init__(self, argv, def_values):
33
MoinScript.__init__(self, argv, def_values)
37
s = xmlrpclib.ServerProxy(self.argv[0])
38
print s.getPage(self.argv[1])