view MoinMoin/script/cli/show.py @ 4258:3f8be25b79cc

Replaced use of request_cli with ScriptContext (all occurrences)
author Florian Krupicka <florian.krupicka@googlemail.com>
date Fri, 01 Aug 2008 00:06:14 +0200
parents 2572688e031a
children a20de9383481
line wrap: on
line source

# -*- coding: iso-8859-1 -*-
"""
MoinMoin - cli show script

@copyright: 2006 MoinMoin:ThomasWaldmann
@license: GNU GPL, see COPYING for details.
"""

from MoinMoin.script import MoinScript
from MoinMoin.wsgiapp import run

class PluginScript(MoinScript):
    """\
Purpose:
========
Just run a CLI request and show the output.

Detailed Instructions:
======================
General syntax: moin [options] cli show

[options] usually should be:
    --config-dir=/path/to/my/cfg/ --wiki-url=wiki.example.org/
"""

    def __init__(self, argv, def_values):
        MoinScript.__init__(self, argv, def_values)

    def mainloop(self):
        self.init_request()
        run(self.request)