~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/script/cli/show.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
"""
8
8
 
9
9
from MoinMoin.script import MoinScript
10
 
from MoinMoin.wsgiapp import run
11
10
 
12
11
class PluginScript(MoinScript):
13
12
    """\
20
19
General syntax: moin [options] cli show
21
20
 
22
21
[options] usually should be:
23
 
    --config-dir=/path/to/my/cfg/ --wiki-url=http://wiki.example.org/
 
22
    --config-dir=/path/to/my/cfg/ --wiki-url=wiki.example.org/
24
23
"""
25
24
 
26
25
    def __init__(self, argv, def_values):
28
27
 
29
28
    def mainloop(self):
30
29
        self.init_request()
31
 
        run(self.request)
 
30
        self.request.run()