Replace wipi.fcgi with the clean 1.8 version.
[matthijs/projects/wipi.git] / wipi.fcgi
1 #!/usr/bin/python
2 # -*- coding: iso-8859-1 -*-
3 """
4     MoinMoin - FastCGI Driver Script
5     
6     @copyright: 2008 MoinMoin:ThomasWaldmann
7     @license: GNU GPL, see COPYING for details.
8 """
9
10 import sys, os
11
12 # a) Configuration of Python's code search path
13 #    If you already have set up the PYTHONPATH environment variable for the
14 #    stuff you see below, you don't need to do a1) and a2).
15
16 # a1) Path of the directory where the MoinMoin code package is located.
17 #     Needed if you installed with --prefix=PREFIX or you didn't use setup.py.
18 #sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
19
20 # a2) Path of the directory where wikiconfig.py / farmconfig.py is located.
21 #     See wiki/config/... for some sample config files.
22 #sys.path.insert(0, '/etc/moin')
23 sys.path.insert(0, '/etc/moin')
24
25 # b) Configuration of moin's logging
26 #    If you have set up MOINLOGGINGCONF environment variable, you don't need this!
27 #    You also don't need this if you are happy with the builtin defaults.
28 #    See wiki/config/logging/... for some sample config files.
29 #from MoinMoin import log
30 #log.load_config('/path/to/logging_configuration_file')
31
32 # Debug mode - show detailed error reports
33 #os.environ['MOIN_DEBUG'] = '1'
34
35
36 from MoinMoin.server.server_fastcgi import FastCgiConfig, run
37
38 class Config(FastCgiConfig):
39     properties = {}
40     # properties = {'script_name': '/'} # use this instead of the line above if your wiki runs under "/" url
41
42     # for backlog, we use a default of 5. if the listen(backlog) call crashes for you, try a smaller value!
43     # backlog = 1
44
45 run(Config)
46