~ubuntu-branches/ubuntu/oneiric/moin/oneiric-security

« back to all changes in this revision

Viewing changes to wiki/server/moin.ajp

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-03-30 12:55:34 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100330125534-4c2ufc1rok24447l
Tags: 1.9.2-2ubuntu1
* Merge from Debian testing (LP: #521834). Based on work by Stefan Ebner.
  Remaining changes:
 - Remove python-xml from Suggests field, the package isn't anymore in
   sys.path.
 - Demote fckeditor from Recommends to Suggests; the code was previously
   embedded in moin, but it was also disabled, so there's no reason for us
   to pull this in by default currently. Note: This isn't necessary anymore
   but needs a MIR for fckeditor, so postpone dropping this change until
   lucid+1
* debian/rules:
  - Replace hardcoded python2.5 with python* and hardcore python2.6 for ln
* debian/control.in: drop versioned depends on cdbs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: iso-8859-1 -*-
 
3
"""
 
4
    MoinMoin - AJP Driver script
 
5
 
 
6
    @copyright: 2008 by MoinMoin:FlorianKrupicka
 
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, '/path/to/wikiconfigdir')
 
23
#sys.path.insert(0, '/path/to/farmconfigdir')
 
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
 
 
33
from MoinMoin.web.flup_frontend import AJPFrontEnd
 
34
AJPFrontEnd().run()
 
35