~charmers/charms/trusty/python-moinmoin/trunk

« back to all changes in this revision

Viewing changes to templates/wikiconfig.py.tmpl

  • Committer: Marco Ceppi
  • Date: 2013-05-23 12:46:12 UTC
  • mfrom: (5.1.6 python-moinmoin)
  • Revision ID: marco@ceppi.net-20130523124612-xsee0kz4sbftavl5
  Tom Haddon 2013-05-07 Some template line break fixes
  Tom Haddon 2013-05-07 Actually run the grep command
  Tom Haddon 2013-05-07 Make the config-changed hook verbose
  Tom Haddon 2013-05-07 Make sure we export our variables so they're available to cheetah templating via the env
  Tom Haddon 2013-05-07 Move to templates and do the right thing if we change the port
  Tom Haddon 2013-05-07 Set the port we want to use in the config value

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
import os
 
3
 
 
4
from MoinMoin.config import multiconfig, url_prefix_static
 
5
 
 
6
class Config(multiconfig.DefaultConfig):
 
7
    wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
 
8
    instance_dir = wikiconfig_dir
 
9
    data_dir = os.path.join(instance_dir, 'data', '') # path with trailing /
 
10
    data_underlay_dir = os.path.join(instance_dir, 'underlay', '') # path with trailing /
 
11
 
 
12
    sitename = u'${WIKI_NAME}'
 
13
    logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' % url_prefix_static
 
14
    superuser = [u"${ADMIN_NAME}", ]
 
15
    acl_rights_before = u"${ADMIN_NAME}:read,write,delete,revert,admin"
 
16
 
 
17
    page_front_page = u"FrontPage"
 
18
    navi_bar = [
 
19
        u'%(page_front_page)s',
 
20
        u'RecentChanges',
 
21
        u'FindPage',
 
22
        u'HelpContents',
 
23
    ]
 
24
    xapian_search = ${XAPIAN_SETTINGS}
 
25
    xapian_stemming = ${XAPIAN_SETTINGS}
 
26
 
 
27
    mail_smarthost = "localhost"
 
28
    mail_from = u"${WIKI_NAME} <noreply>"
 
29
 
 
30
${EXTRA_SETTINGS}