Back to index

moin  1.9.0~rc2
mywiki.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
00003 # western country and you don't know that you use utf-8, you probably want to
00004 # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
00005 # encoding) you MUST use: coding: utf-8
00006 # That setting must match the encoding your editor uses when you modify the
00007 # settings below. If it does not, special non-ASCII chars will be wrong.
00008 
00009 """
00010 This is a sample config for a wiki that is part of a wiki farm and uses
00011 farmconfig for common stuff. Here we define what has to be different from
00012 the farm's common settings.
00013 """
00014 
00015 # we import the FarmConfig class for common defaults of our wikis:
00016 from farmconfig import FarmConfig
00017 
00018 # now we subclass that config (inherit from it) and change what's different:
00019 class Config(FarmConfig):
00020 
00021     # basic options (you normally need to change these)
00022     sitename = u'MyWiki' # [Unicode]
00023     interwikiname = u'MyWiki' # [Unicode]
00024 
00025     # name of entry page / front page [Unicode], choose one of those:
00026 
00027     # a) if most wiki content is in a single language
00028     #page_front_page = u"MyStartingPage"
00029 
00030     # b) if wiki content is maintained in many languages
00031     page_front_page = u"FrontPage"
00032 
00033     data_dir = '/org/mywiki/data/'
00034