annotate wiki/config/wikifarm/mywiki.py @ 4508:83bdb8f78bce

use unicode interwikiname in sample configs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 24 Jan 2009 05:33:07 +0100
parents 3e7fa99247cd
children
rev   line source
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
2 # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
3 # western country and you don't know that you use utf-8, you probably want to
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
4 # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
5 # encoding) you MUST use: coding: utf-8
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
6 # That setting must match the encoding your editor uses when you modify the
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
7 # settings below. If it does not, special non-ASCII chars will be wrong.
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
8
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
9 """
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
10 This is a sample config for a wiki that is part of a wiki farm and uses
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
11 farmconfig for common stuff. Here we define what has to be different from
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
12 the farm's common settings.
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
13 """
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
14
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
15 # we import the FarmConfig class for common defaults of our wikis:
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
16 from farmconfig import FarmConfig
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
17
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
18 # now we subclass that config (inherit from it) and change what's different:
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
19 class Config(FarmConfig):
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
20
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
21 # basic options (you normally need to change these)
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
22 sitename = u'MyWiki' # [Unicode]
4508
83bdb8f78bce use unicode interwikiname in sample configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 426
diff changeset
23 interwikiname = u'MyWiki' # [Unicode]
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
24
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
25 # name of entry page / front page [Unicode], choose one of those:
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
26
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
27 # a) if most wiki content is in a single language
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
28 #page_front_page = u"MyStartingPage"
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
29
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
30 # b) if wiki content is maintained in many languages
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
31 page_front_page = u"FrontPage"
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
32
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
33 data_dir = '/org/mywiki/data/'
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents:
diff changeset
34