comparison starttreepkgweb.py @ 20:467013d9d627

Add simple web interface for status reports
author Bernhard Herzog <bh@intevation.de>
date Tue, 13 Mar 2007 19:29:34 +0100
parents
children
comparison
equal deleted inserted replaced
19:0cdda44240a6 20:467013d9d627
1 #! /usr/bin/python2.4
2 # Copyright (C) 2007 by Intevation GmbH
3 # Authors:
4 # Bernhard Herzog <bh@intevation.de>
5 #
6 # This program is free software under the GPL (>=v2)
7 # Read the file COPYING coming with the software for details.
8
9 """Starts the tree packager webinterface"""
10
11 import os
12 from optparse import OptionParser
13
14 from treepkg.web import runserver
15
16 def parse_commandline():
17 parser = OptionParser()
18 dirname = os.path.dirname(__file__)
19 parser.set_defaults(config_file=os.path.join(dirname, "treepkg.cfg"),
20 cherrypy_config=os.path.join(dirname, "cherrypy.cfg"))
21 parser.add_option("--config-file",
22 help=("The tree packager config file."
23 " Default treepkg.cfg"))
24 parser.add_option("--cherrypy-config",
25 help=("The cherrypy config file for the web interface."
26 " Default cherrypy.cfg"))
27 return parser.parse_args()
28
29 def main():
30 options, args = parse_commandline()
31 runserver(options.config_file, options.cherrypy_config)
32
33 main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)