comparison MoinMoin/script/xmlrpc/remote.py @ 3108:2572688e031a

improved moin script's builtin help function, thanks to Federico Lorenzi (ported from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 23:40:48 +0100
parents 3d08f1cb4429
children a20de9383481
comparison
equal deleted inserted replaced
3107:c6e39279f83b 3108:2572688e031a
1 # -*- coding: iso-8859-1 -*- 1 # -*- coding: iso-8859-1 -*-
2 """ 2 """
3 MoinMoin - remote command execution, client part 3 MoinMoin - remote command execution, client part
4 4
5 This can be used as client to execute moin scripts remotely. 5 @copyright: 2006 MoinMoin:ThomasWaldmann
6 6 @license: GNU GPL, see COPYING for details.
7 @copyright: 2006 MoinMoin:ThomasWaldmann
8 @license: GNU GPL, see COPYING for details.
9 """ 7 """
10 8
11 import sys 9 import sys
12 import xmlrpclib 10 import xmlrpclib
13 11
14 from MoinMoin.script import MoinScript, fatal 12 from MoinMoin.script import MoinScript, fatal
15 13
16 class PluginScript(MoinScript): 14 class PluginScript(MoinScript):
17 """ Remote Script Execution Client """ 15 """\
16 Purpose:
17 ========
18 This tool allows you to execute moin scripts remotely.
19
20 Detailed Instructions:
21 ======================
22 General syntax: moin [options] xmlrpc remote [remote-options]
23
24 [options] usually should be:
25 --config-dir=/path/to/my/cfg/ --wiki-url=wiki.example.org/
26
27 [remote-options] see below:
28 0. Verify that you have a remotescriptconf.py configuration file.
29
30 1. To run the script 'account check' remotely.
31 moin ... xmlrpc remote account check
32 """
18 33
19 def __init__(self, argv, def_values): 34 def __init__(self, argv, def_values):
20 MoinScript.__init__(self, argv, def_values) 35 MoinScript.__init__(self, argv, def_values)
21 self.argv = argv 36 self.argv = argv
22 37