Hatta Wiki

view hatta.fcg @ 308:02c0d780d0b7

Simple configuration file
author sheep@ghostwheel
date Thu Feb 26 10:27:33 2009 +0100 (2009-02-26)
parents 38732b40bd82
children
line source
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
4 import flup
5 import sys
6 # XXX Uncomment and edit this if hatta.py is not installed in site-packages
7 #sys.path.insert(0, "/path/to/dir/with/hatta/")
8 import hatta
10 config = hatta.WikiConfig(
11 pages_path='/path/to/pages/', # XXX Edit this!
12 cache_path='/path/to/cache/', # XXX Edit this!
13 )
14 config.parse_args()
15 config.parse_files()
16 config.sanitize()
17 wiki = hatta.Wiki(config)
18 app = wiki.application
20 # XXX Uncomment this, if you are using fastcgi on / on Lighttpd
21 #def app(env, start):
22 # env['PATH_INFO'] = env['SCRIPT_NAME'] + env['PATH_INFO']
23 # env['SCRIPT_NAME'] = ''
24 # return wiki.application(env, start)
26 flup.server.fcgi.WSGIServer(app).run()