|
tw-public@0
|
1 |
#!/usr/bin/env python
|
|
tw-public@0
|
2 |
# -*- coding: iso-8859-1 -*-
|
|
tw-public@0
|
3 |
"""
|
|
florian@4266
|
4 |
MoinMoin - CGI/FCGI Driver script
|
|
tw-public@0
|
5 |
|
|
tw@3505
|
6 |
@copyright: 2000-2005 by Juergen Hermann <jh@web.de>,
|
|
florian@4266
|
7 |
2008 by MoinMoin:ThomasWaldmann,
|
|
florian@4266
|
8 |
2008 by MoinMoin:FlorianKrupicka
|
|
tw-public@0
|
9 |
@license: GNU GPL, see COPYING for details.
|
|
tw-public@0
|
10 |
"""
|
|
tw-public@0
|
11 |
|
|
tw@3580
|
12 |
import sys, os
|
|
tw-public@0
|
13 |
|
|
tw@3580
|
14 |
# a) Configuration of Python's code search path
|
|
tw@3580
|
15 |
# If you already have set up the PYTHONPATH environment variable for the
|
|
tw@3580
|
16 |
# stuff you see below, you don't need to do a1) and a2).
|
|
tw-public@0
|
17 |
|
|
tw@3580
|
18 |
# a1) Path of the directory where the MoinMoin code package is located.
|
|
tw@3580
|
19 |
# Needed if you installed with --prefix=PREFIX or you didn't use setup.py.
|
|
tw@3580
|
20 |
#sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
|
|
tw-public@0
|
21 |
|
|
tw@3580
|
22 |
# a2) Path of the directory where wikiconfig.py / farmconfig.py is located.
|
|
tw@3580
|
23 |
# See wiki/config/... for some sample config files.
|
|
tw@3580
|
24 |
#sys.path.insert(0, '/path/to/wikiconfigdir')
|
|
tw@3580
|
25 |
#sys.path.insert(0, '/path/to/farmconfigdir')
|
|
tw-public@0
|
26 |
|
|
tw@3580
|
27 |
# b) Configuration of moin's logging
|
|
tw@3580
|
28 |
# If you have set up MOINLOGGINGCONF environment variable, you don't need this!
|
|
tw@3580
|
29 |
# You also don't need this if you are happy with the builtin defaults.
|
|
tw@3580
|
30 |
# See wiki/config/logging/... for some sample config files.
|
|
tw@3580
|
31 |
#from MoinMoin import log
|
|
tw@3580
|
32 |
#log.load_config('/path/to/logging_configuration_file')
|
|
tw-public@0
|
33 |
|
|
tw@4533
|
34 |
# this works around a bug in flup's CGI autodetection (as of flup 1.0.1):
|
|
tw@4533
|
35 |
os.environ['FCGI_FORCE_CGI'] = 'Y' # 'Y' for (slow) CGI, 'N' for FCGI
|
|
tw@4533
|
36 |
|
|
florian@4289
|
37 |
from MoinMoin.web.flup_frontend import CGIFrontEnd
|
|
florian@4289
|
38 |
CGIFrontEnd().run()
|
|
tw@4533
|
39 |
|