annotate wikiconfig.py @ 2913:99d5fca40c1e

fix session expiry update bug
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sun, 28 Oct 2007 20:40:12 +0100
parents 01f05e74aa9c
children cd6cfc715261
rev   line source
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
2 """MoinMoin Desktop Edition (MMDE) - Configuration
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
3
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
4 ONLY to be used for MMDE - if you run a personal wiki on your notebook or PC.
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
5
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
6 This is NOT intended for internet or server or multiuser use due to relaxed security settings!
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
7 """
1599
c001386fc59b fix moin.py and wikiconfig.py, move MMDE wikiconfig.py to toplevel dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1597
diff changeset
8 import sys, os
c001386fc59b fix moin.py and wikiconfig.py, move MMDE wikiconfig.py to toplevel dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1597
diff changeset
9 from MoinMoin.config.multiconfig import DefaultConfig
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
10
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2244
diff changeset
11
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 class Config(DefaultConfig):
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
13 # vvv DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO vvv
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
14 moinmoin_dir = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
15 data_dir = os.path.join(moinmoin_dir, 'wiki', 'data')
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
16 data_underlay_dir = os.path.join(moinmoin_dir, 'wiki', 'underlay')
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
18 DesktopEdition = True # give all local users full powers
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
19 acl_rights_default = u"All:read,write,delete,revert,admin"
1602
f5773070c915 mmde: disable surge protection
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1600
diff changeset
20 surge_action_limits = None # no surge protection
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
21 sitename = u'MoinMoin DesktopEdition'
2004
37c1b2b49c2d wikiconfig: fix logo URL for 1.7
Johannes Berg <johannes AT sipsolutions DOT net>
parents: 1602
diff changeset
22 logo_string = u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">'
1597
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
23 page_front_page = u'FrontPage' # change to some better value
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
24 page_credits = [
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
25 '<a href="http://moinmoin.wikiwikiweb.de/">MoinMoin DesktopEdition Powered</a>',
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
26 '<a href="http://www.python.org/">Python Powered</a>',
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
27 ]
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
28 # ^^^ DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO ^^^
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
29
2244
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
30 # developers, add your testing config values in this file
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
31 # (and don't add it to your repository):
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
32 try:
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
33 from wikiconfig_local import *
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
34 except ImportError:
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
35 pass