annotate wiki/config/wikiconfig.py @ 6106:b59ee217581c

remove MoinMoin.support.HeaderFixed assuming it is fixed in 2.7. no idea what the problem was, comments unhelpful.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 01:52:01 +0200
parents c5ba615fdeeb
children
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
3 # western country and you don't know that you use utf-8, you probably want to
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4 # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
5 # encoding) you MUST use: coding: utf-8
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
6 # That setting must match the encoding your editor uses when you modify the
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
7 # settings below. If it does not, special non-ASCII chars will be wrong.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
8
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
9 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
10 MoinMoin - Configuration for a single wiki
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
11
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12 If you run a single wiki only, you can omit the farmconfig.py config
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
13 file and just use wikiconfig.py - it will be used for every request
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
14 we get in that case.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
15
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
16 Note that there are more config options than you'll find in
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
17 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
18 the module MoinMoin.config.multiconfig for a full list of names and their
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
19 default values.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
20
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: 3031
diff changeset
21 Also, the URL http://moinmo.in/HelpOnConfiguration has
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
22 a list of config options.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
23
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2213
diff changeset
24 ** Please do not use this file for a wiki farm. Use the sample file
352
2ee37d4202fe Added a small reminder about the wikifarm directory to wikiconfig.py
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 331
diff changeset
25 from the wikifarm directory instead! **
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
26 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
27
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
28 import os
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
29
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
30 from MoinMoin.config import multiconfig, url_prefix_static
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
31
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
32
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
33 class Config(multiconfig.DefaultConfig):
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
34
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
35 # Critical setup ---------------------------------------------------
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
36
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
37 # Directory containing THIS wikiconfig:
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
38 wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
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
39
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
40 # We assume that this config file is located in the instance directory, like:
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
41 # instance_dir/
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
42 # wikiconfig.py
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
43 # data/
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 # underlay/
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
45 # If that's not true, feel free to just set instance_dir to the real path
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
46 # where data/ and underlay/ is located:
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
47 #instance_dir = '/where/ever/your/instance/is'
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
48 instance_dir = wikiconfig_dir
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
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 # Where your own wiki pages are (make regular backups of this directory):
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
51 data_dir = os.path.join(instance_dir, 'data', '') # path with trailing /
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
52
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
53 # Where system and help pages are (you may exclude this from backup):
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
54 data_underlay_dir = os.path.join(instance_dir, 'underlay', '') # path with trailing /
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
55
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
56 # The URL prefix we use to access the static stuff (img, css, js).
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
57 # 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
58 # 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
59 # 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
60 # 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
61 # 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
62 #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
63
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
64
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
65 # Wiki identity ----------------------------------------------------
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
66
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
67 # Site name, used by default for wiki name-logo [Unicode]
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
68 sitename = u'Untitled Wiki'
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
69
173
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
70 # Wiki logo. You can use an image, text or both. [Unicode]
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
71 # For no logo or text, use '' - the default is to show the sitename.
178
ebe1730a3176 add halloween logo
Thomas Waldmann <tw@waldmann-edv.de>
parents: 173
diff changeset
72 # See also url_prefix setting below!
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
73 logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' % url_prefix_static
173
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
74
35
f0af060fb82b making people choose the right approach to page_front_page
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
75 # name of entry page / front page [Unicode], choose one of those:
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
76
35
f0af060fb82b making people choose the right approach to page_front_page
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
77 # a) if most wiki content is in a single language
f0af060fb82b making people choose the right approach to page_front_page
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
78 #page_front_page = u"MyStartingPage"
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
79
35
f0af060fb82b making people choose the right approach to page_front_page
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
80 # b) if wiki content is maintained in many languages
f0af060fb82b making people choose the right approach to page_front_page
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
81 #page_front_page = u"FrontPage"
f0af060fb82b making people choose the right approach to page_front_page
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
82
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
83 # The interwiki name used in interwiki links
4508
83bdb8f78bce use unicode interwikiname in sample configs
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4452
diff changeset
84 #interwikiname = u'UntitledWiki'
211
f374d87dd925 change show_interwiki default to 0
Thomas Waldmann <tw@waldmann-edv.de>
parents: 197
diff changeset
85 # Show the interwiki name (and link it to page_front_page) in the Theme,
f374d87dd925 change show_interwiki default to 0
Thomas Waldmann <tw@waldmann-edv.de>
parents: 197
diff changeset
86 # nice for farm setups or when your logo does not show the wiki's name.
f374d87dd925 change show_interwiki default to 0
Thomas Waldmann <tw@waldmann-edv.de>
parents: 197
diff changeset
87 #show_interwiki = 1
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
88
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
89
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
90 # Security ----------------------------------------------------------
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
91
173
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
92 # This is checked by some rather critical and potentially harmful actions,
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
93 # like despam or PackageInstaller action:
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
94 #superuser = [u"YourName", ]
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
95
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
96 # IMPORTANT: grant yourself admin rights! replace YourName with
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
97 # your user name. See HelpOnAccessControlLists for more help.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
98 # All acl_rights_xxx options must use unicode [Unicode]
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
99 #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: 352
diff changeset
100
2440
19bf80768b8a wikiconfig: add comment about how to disable password_checker
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2286
diff changeset
101 # The default (ENABLED) password_checker will keep users from choosing too
19bf80768b8a wikiconfig: add comment about how to disable password_checker
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2286
diff changeset
102 # short or too easy passwords. If you don't like this and your site has
19bf80768b8a wikiconfig: add comment about how to disable password_checker
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2286
diff changeset
103 # rather low security requirements, feel free to DISABLE the checker by:
19bf80768b8a wikiconfig: add comment about how to disable password_checker
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2286
diff changeset
104 #password_checker = None # None means "don't do any password strength checks"
19bf80768b8a wikiconfig: add comment about how to disable password_checker
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2286
diff changeset
105
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
106 # Link spam protection for public wikis (Uncomment to enable)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
107 # Needs a reliable internet connection.
746
0d3e9b79dde3 moved SecurityPolicy stuff to security/*
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 426
diff changeset
108 #from MoinMoin.security.antispam import SecurityPolicy
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
109
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
110
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
111 # Mail --------------------------------------------------------------
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
112
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
113 # Configure to enable subscribing to pages (disabled by default)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
114 # or sending forgotten passwords.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
115
63
d1333236adba backward compability with 1.3 mail_from configuration, update example configuration, add tests
Nir Soffer <nirs@freeshell.org>
parents: 35
diff changeset
116 # SMTP server, e.g. "mail.provider.com" (None to disable mail)
331
3fd688a3a370 change sample config's mail settings (commented out)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 248
diff changeset
117 #mail_smarthost = ""
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
118
63
d1333236adba backward compability with 1.3 mail_from configuration, update example configuration, add tests
Nir Soffer <nirs@freeshell.org>
parents: 35
diff changeset
119 # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
331
3fd688a3a370 change sample config's mail settings (commented out)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 248
diff changeset
120 #mail_from = u""
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
121
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
122 # "user pwd" if you need to use SMTP AUTH
331
3fd688a3a370 change sample config's mail settings (commented out)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 248
diff changeset
123 #mail_login = ""
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
124
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
125
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
126 # User interface ----------------------------------------------------
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
127
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
128 # Add your wikis important pages at the end. It is not recommended to
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
129 # remove the default links. Leave room for user links - don't use
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
130 # more than 6 short items.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
131 # You MUST use Unicode strings here, but you need not use localized
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
132 # page names for system and help pages, those will be used automatically
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
133 # according to the user selected language. [Unicode]
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
134 navi_bar = [
173
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
135 # If you want to show your page_front_page here:
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
136 #u'%(page_front_page)s',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
137 u'RecentChanges',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
138 u'FindPage',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
139 u'HelpContents',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
140 ]
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
141
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
142 # The default theme anonymous or new users get
5769
c5ba615fdeeb config.wikiconfig: default theme modernized
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 5700
diff changeset
143 theme_default = 'modernized'
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 352
diff changeset
144
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
145
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
146 # Language options --------------------------------------------------
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
147
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: 3031
diff changeset
148 # See http://moinmo.in/ConfigMarket for configuration in
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
149 # YOUR language that other people contributed.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
150
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
151 # The main wiki language, set the direction of the wiki pages
135
6441fd7d120c fixed language_default setting in sample configs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 63
diff changeset
152 language_default = 'en'
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
153
3602
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
154 # 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
155 # 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
156 # 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
157 # moin's code will add ^ / $ at beginning / end when needed
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
158 # You must use Unicode strings here [Unicode]
3927
2044213dcb13 prevent CategoryTemplate being listed as a category (it is a Template, but matched also the category regex) - added to sample wikiconfig
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3896
diff changeset
159 page_category_regex = ur'(?P<all>Category(?P<key>(?!Template)\S+))'
3602
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
160 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
161 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
162 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
163
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
164 # Content options ---------------------------------------------------
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
165
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
166 # Show users hostnames in RecentChanges
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2213
diff changeset
167 show_hosts = 1
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
168
173
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
169 # Enable graphical charts, requires gdchart.
92e3a82bfe3e updated sample configs, CHANGES, version
Thomas Waldmann <tw@waldmann-edv.de>
parents: 135
diff changeset
170 #chart_options = {'width': 600, 'height': 300}
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
171