annotate moin.py @ 3114:338ad6aee6da

AdvancedSearch: fix domain:system search crashing
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Jan 2008 01:30:48 +0100
parents 79f850129782
children
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 #!/usr/bin/env python
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
3 Start script for the standalone Wiki server.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4
3025
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2419
diff changeset
5 @copyright: 2007 MoinMoin:ForrestVoight
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
6 @license: GNU GPL, see COPYING for details.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
7 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
8
3111
79f850129782 logging: fix server scripts to load logging config, fix logging configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
9 import os, sys
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
10
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
11 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12 # or if you did not use setup.py.
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1582
diff changeset
13 #sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
14
3025
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2419
diff changeset
15 moinpath = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2419
diff changeset
16 sys.path.insert(0, moinpath)
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2419
diff changeset
17 os.chdir(moinpath)
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1582
diff changeset
18
3111
79f850129782 logging: fix server scripts to load logging config, fix logging configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
19 from MoinMoin import log
79f850129782 logging: fix server scripts to load logging config, fix logging configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
20 log.load_config('wiki/config/logging/stderr') # XXX maybe fix path
79f850129782 logging: fix server scripts to load logging config, fix logging configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
21
79f850129782 logging: fix server scripts to load logging config, fix logging configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
22 from MoinMoin.script import MoinScript
79f850129782 logging: fix server scripts to load logging config, fix logging configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
23
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
24 if __name__ == '__main__':
3025
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2419
diff changeset
25 sys.argv = ["moin.py", "server", "standalone"]
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2419
diff changeset
26 MoinScript().run()