annotate wikiconfig.py @ 2244:d31998cd251c

use wikiconfig_local.py for development config changes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 22 Jun 2007 00:46:08 +0200
parents 37c1b2b49c2d
children 01f05e74aa9c
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
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
11 class Config(DefaultConfig):
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 # 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
13 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
14 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
15 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
16
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17 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
18 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
19 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
20 sitename = u'MoinMoin DesktopEdition'
2004
37c1b2b49c2d wikiconfig: fix logo URL for 1.7
Johannes Berg <johannes AT sipsolutions DOT net>
parents: 1602
diff changeset
21 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
22 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
23 page_credits = [
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
24 '<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
25 '<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
26 ]
bbe187af4fc0 integrated MMDE (build scripts need more work)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
27 # ^^^ 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
28
2244
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
29 # 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
30 # (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
31 try:
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
32 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
33 except ImportError:
d31998cd251c use wikiconfig_local.py for development config changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2004
diff changeset
34 pass