X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=conf%2Fexodus.py;h=5e144dbbd45a641db9641eaa76da64e4466f8284;hb=58b669cdbac3fe8ef8c3bbab9a66c0307825f6eb;hp=c013e6e0eceae81ddd03a9ac79b280464ffa5b04;hpb=ad143565d486e3bd13aa5c0b9fc00c8507b465e3;p=matthijs%2Fprojects%2Fwipi.git diff --git a/conf/exodus.py b/conf/exodus.py index c013e6e..5e144db 100644 --- a/conf/exodus.py +++ b/conf/exodus.py @@ -1,16 +1,5 @@ -# -*- coding: iso-8859-1 -*- -# IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a -# western country and you don't know that you use utf-8, you probably want to -# use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode -# encoding) you MUST use: coding: utf-8 -# That setting must match the encoding your editor uses when you modify the -# settings below. If it does not, special non-ASCII chars will be wrong. - -""" -This is a sample config for a wiki that is part of a wiki farm and uses -farmconfig for common stuff. Here we define what has to be different from -the farm's common settings. -""" +# -*- coding: utf-8 -*- +# IMPORTANT! This encoding (charset) setting MUST be correct! # we import the FarmConfig class for common defaults of our wikis: from farmconfig import FarmConfig @@ -20,13 +9,12 @@ from farmconfig import data_dir_root # now we subclass that config (inherit from it) and change what's different: class Config(FarmConfig): - # basic options (you normally need to change these) + # basic options sitename = u'Exodus' # [Unicode] interwikiname = 'Exodus' - # name of entry page / front page [Unicode], choose one of those: - - page_front_page = u"Home" + # name of entry page + page_front_page = u"Site" data_dir = data_dir_root + '/exodus/' @@ -35,4 +23,13 @@ class Config(FarmConfig): editor_force = True editor_default = 'text' # internal default, just for completeness - theme_default = 'exodus' + # Use a site-theme for /Site/ and a normal wiki theme for the rest. + proxy_theme_mapping = [ + ('/Site/', 'exodus'), + ('', 'modernized'), + ] + + # Set cookies on /, so they work on /wipi and /Site alike. + cookie_path = '/' + +# vim: set ts=8 sts=4 sw=4 expandtab: