annotate wiki/config/wikifarm/farmconfig.py @ 4624:fb5abe50c6d2

wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 21:57:08 +0100
parents 173c67aff3d6
children 9a26c69ccf5a
rev   line source
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
2 # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
3 # western country and you don't know that you use utf-8, you probably want to
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
4 # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
5 # encoding) you MUST use: coding: utf-8
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
6 # That setting must match the encoding your editor uses when you modify the
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
7 # settings below. If it does not, special non-ASCII chars will be wrong.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
8
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
9 """
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
10 MoinMoin - Configuration for a wiki farm
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
11
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
12 If you run a single wiki only, you can keep the "wikis" list "as is"
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
13 (it has a single rule mapping all requests to mywiki.py).
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
14
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
15 Note that there are more config options than you'll find in
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
16 the version of this file that is installed by default; see
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
17 the module MoinMoin.config.multiconfig for a full list of names and their
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
18 default values.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
19
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3096
diff changeset
20 Also, the URL http://moinmo.in/HelpOnConfiguration has
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
21 a list of config options.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
22 """
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
23
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
24
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
25 # Wikis in your farm --------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
26
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
27 # If you run multiple wikis, you need this list of pairs (wikiname, url
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
28 # regular expression). moin processes that list and tries to match the
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
29 # regular expression against the URL of this request - until it matches.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
30 # Then it loads the <wikiname>.py config for handling that request.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
31
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
32 # Important:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
33 # * the left part is the wikiname enclosed in double quotes
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
34 # * the left part must be a valid python module name, so better use only
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
35 # lower letters "a-z" and "_". Do not use blanks or "-" there!!!
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
36 # * the right part is the url re, use r"..." for it
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
37 # * the right part does NOT include "http://" nor "https://" at the beginning
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
38 # * in the right part ".*" means "everything". Just "*" does not work like
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
39 # for filenames on the shell / commandline, you must use ".*" as it is a RE.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
40 # * in the right part, "^" means "beginning" and "$" means "end"
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
41
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
42 wikis = [
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
43
4624
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
44 # wikiname, url regular expression
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
45 # ---------------------------------------------------------------
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
46 ("mywiki", r".*"), # this is ok for a single wiki
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
47
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
48 # for multiple wikis, do something like this:
4624
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
49 #("wiki1", r"^http://wiki1\.example\.org/.*$"),
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
50 #("wiki2", r"^http://wiki2\.example\.org/.*$"),
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
51 ]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
52
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
53
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
54 # Common configuration for all wikis ----------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
55
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
56 # Everything that should be configured the same way should go here,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
57 # anything else that should be different should go to the single wiki's
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
58 # config.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
59 # In that single wiki's config, we will use the class FarmConfig we define
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
60 # below as the base config settings and only override what's different.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
61 #
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
62 # In exactly the same way, we first include MoinMoin's Config Defaults here -
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
63 # this is to get everything to sane defaults, so we need to change only what
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
64 # we like to have different:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
65
4624
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
66 from MoinMoin.config import multiconfig, url_prefix_static
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
67
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
68 # Now we subclass this DefaultConfig. This means that we inherit every setting
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
69 # from the DefaultConfig, except those we explicitely define different.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
70
4624
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
71 class FarmConfig(multiconfig.DefaultConfig):
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
72
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
73 # Critical setup ---------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
74
1582
f37b49b6313d url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1011
diff changeset
75 # The URL prefix we use to access the static stuff (img, css, js).
4624
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
76 # Note: moin runs a static file server at url_prefix_static path (relative
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
77 # to the script url).
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
78 # If you run your wiki script at the root of your site (/), just do NOT
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
79 # use this setting and it will automatically work.
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
80 # If you run your wiki script at /mywiki, you need to use this:
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
81 #url_prefix_static = '/mywiki' + url_prefix_static
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
82 # If you need different url_prefix_static setups for your wikis,
fb5abe50c6d2 wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4549
diff changeset
83 # you'll have to do it in each wiki's config.
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
84
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
85 # Security ----------------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
86
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
87 # This is checked by some rather critical and potentially harmful actions,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
88 # like despam or PackageInstaller action:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
89 #superuser = [u"YourName", ]
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
90
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
91 # IMPORTANT: grant yourself admin rights! replace YourName with
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
92 # your user name. See HelpOnAccessControlLists for more help.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
93 # All acl_rights_xxx options must use unicode [Unicode]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
94 #acl_rights_before = u"YourName:read,write,delete,revert,admin"
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
95
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
96 # Link spam protection for public wikis (uncomment to enable).
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
97 # Needs a reliable internet connection.
746
0d3e9b79dde3 moved SecurityPolicy stuff to security/*
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 426
diff changeset
98 #from MoinMoin.security.antispam import SecurityPolicy
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
99
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
100
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
101 # Mail --------------------------------------------------------------
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
102
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
103 # Configure to enable subscribing to pages (disabled by default) or
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
104 # sending forgotten passwords.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
105
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
106 # SMTP server, e.g. "mail.provider.com" (empty or None to disable mail)
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
107 #mail_smarthost = ""
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
108
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
109 # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
110 #mail_from = u""
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
111
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
112 # "user pwd" if you need to use SMTP AUTH
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
113 #mail_login = ""
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
114
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
115
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
116 # User interface ----------------------------------------------------
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
117
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
118 # Add your wikis important pages at the end. It is not recommended to
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
119 # remove the default links. Leave room for user links - don't use
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
120 # more than 6 short items.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
121 # You MUST use Unicode strings here, but you need not use localized
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
122 # page names for system and help pages, those will be used automatically
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
123 # according to the user selected language. [Unicode]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
124 navi_bar = [
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
125 # If you want to show your page_front_page here:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
126 #u'%(page_front_page)s',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
127 u'RecentChanges',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
128 u'FindPage',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
129 u'HelpContents',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
130 ]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
131
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
132 # The default theme anonymous or new users get
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
133 theme_default = 'modern'
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
134
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
135
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
136 # Language options --------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
137
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3096
diff changeset
138 # See http://moinmo.in/ConfigMarket for configuration in
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
139 # YOUR language that other people contributed.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
140
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
141 # The main wiki language, set the direction of the wiki pages
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
142 language_default = 'en'
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
143
3602
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
144 # the following regexes should match the complete name when used in free text
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
145 # the group 'all' shall match all, while the group 'key' shall match the key only
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
146 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
147 # moin's code will add ^ / $ at beginning / end when needed
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
148 # You must use Unicode strings here [Unicode]
3602
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
149 page_category_regex = ur'(?P<all>Category(?P<key>\S+))'
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
150 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
151 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
152 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
153
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
154 # Content options ---------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
155
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
156 # Show users hostnames in RecentChanges
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
157 show_hosts = 1
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
158
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
159 # Show the interwiki name (and link it to page_front_page) in the Theme,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
160 # nice for farm setups or when your logo does not show the wiki's name.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
161 show_interwiki = 1
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
162 logo_string = u''
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
163
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
164 # Enable graphical charts, requires gdchart.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
165 #chart_options = {'width': 600, 'height': 300}
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
166