~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wikiconfig.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
This is NOT intended for internet or server or multiuser use due to relaxed security settings!
7
7
"""
8
 
 
9
8
import sys, os
10
 
 
11
 
from MoinMoin.config import multiconfig, url_prefix_static
12
 
 
13
 
 
14
 
class LocalConfig(multiconfig.DefaultConfig):
 
9
from MoinMoin.config.multiconfig import DefaultConfig
 
10
 
 
11
 
 
12
class LocalConfig(DefaultConfig):
15
13
    # vvv DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO vvv
16
 
    # Directory containing THIS wikiconfig:
17
 
    wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
18
 
 
19
 
    # We assume this structure for a simple "unpack and run" scenario:
20
 
    # wikiconfig.py
21
 
    # wiki/
22
 
    #      data/
23
 
    #      underlay/
24
 
    # If that's not true, feel free to just set instance_dir to the real path
25
 
    # where data/ and underlay/ is located:
26
 
    #instance_dir = '/where/ever/your/instance/is'
27
 
    instance_dir = os.path.join(wikiconfig_dir, 'wiki')
28
 
 
29
 
    # Where your own wiki pages are (make regular backups of this directory):
30
 
    data_dir = os.path.join(instance_dir, 'data', '') # path with trailing /
31
 
 
32
 
    # Where system and help pages are (you may exclude this from backup):
33
 
    data_underlay_dir = os.path.join(instance_dir, 'underlay', '') # path with trailing /
 
14
    moinmoin_dir = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
 
15
    data_dir = os.path.join(moinmoin_dir, 'wiki', 'data')
 
16
    data_underlay_dir = os.path.join(moinmoin_dir, 'wiki', 'underlay')
34
17
 
35
18
    DesktopEdition = True # give all local users full powers
36
19
    acl_rights_default = u"All:read,write,delete,revert,admin"
37
20
    surge_action_limits = None # no surge protection
38
21
    sitename = u'MoinMoin DesktopEdition'
39
 
    logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' % url_prefix_static
 
22
    logo_string = u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">'
 
23
    page_front_page = u'FrontPage' # change to some better value
40
24
    # ^^^ DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO ^^^
41
25
 
42
 
    #page_front_page = u'FrontPage' # change to some better value
43
26
 
44
27
    # Add your configuration items here.
45
 
    secrets = 'This string is NOT a secret, please make up your own, long, random secret string!'
 
28
 
 
29
 
46
30
 
47
31
# DEVELOPERS! Do not add your configuration items there,
48
32
# you could accidentally commit them! Instead, create a
60
44
    if not str(err).endswith('wikiconfig_local'):
61
45
        raise
62
46
    Config = LocalConfig
63