Back to index

moin  1.9.0~rc2
show.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 """
00003 MoinMoin - cli show script
00004 
00005 @copyright: 2006 MoinMoin:ThomasWaldmann
00006 @license: GNU GPL, see COPYING for details.
00007 """
00008 
00009 from MoinMoin.script import MoinScript
00010 from MoinMoin.wsgiapp import run
00011 
00012 class PluginScript(MoinScript):
00013     """\
00014 Purpose:
00015 ========
00016 Just run a CLI request and show the output.
00017 
00018 Detailed Instructions:
00019 ======================
00020 General syntax: moin [options] cli show
00021 
00022 [options] usually should be:
00023     --config-dir=/path/to/my/cfg/ --wiki-url=wiki.example.org/
00024 """
00025 
00026     def __init__(self, argv, def_values):
00027         MoinScript.__init__(self, argv, def_values)
00028 
00029     def mainloop(self):
00030         self.init_request()
00031         run(self.request)