comparison MoinMoin/config/__init__.py @ 1582:f37b49b6313d

url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Sep 2006 11:01:54 +0200
parents 58f5af49cd03
children 94887c1c1e8f
comparison
equal deleted inserted replaced
1580:1393f9e111f4 1582:f37b49b6313d
4 4
5 @copyright: 2005-2006 by Thomas Waldmann (MoinMoin:ThomasWaldmann) 5 @copyright: 2005-2006 by Thomas Waldmann (MoinMoin:ThomasWaldmann)
6 @license: GNU GPL, see COPYING for details. 6 @license: GNU GPL, see COPYING for details.
7 """ 7 """
8 import re 8 import re
9 from MoinMoin import version
9 10
10 # Threads flag - if you write a moin server that use threads, import 11 # Threads flag - if you write a moin server that use threads, import
11 # config in the server and set this flag to True. 12 # config in the server and set this flag to True.
12 use_threads = False 13 use_threads = False
13 14
16 # benefit for the user. IMPORTANT: use only lowercase 'utf-8'! 17 # benefit for the user. IMPORTANT: use only lowercase 'utf-8'!
17 charset = 'utf-8' 18 charset = 'utf-8'
18 19
19 # When creating files, we use e.g. 0666 & config.umask for the mode: 20 # When creating files, we use e.g. 0666 & config.umask for the mode:
20 umask = 0770 21 umask = 0770
22
23 # Default value for the static stuff URL prefix (css, img, js).
24 # Caution:
25 # * do NOT use this directly, it is only the DEFAULT value to be used by
26 # server Config classes and by multiconfig.py for request.cfg.
27 # * must NOT end with '/'!
28 # * some servers expect '/' at beginning and only 1 level deep.
29 url_prefix_static = '/moin_static' + version.release_short
21 30
22 # Invalid characters - invisible characters that should not be in page 31 # Invalid characters - invisible characters that should not be in page
23 # names. Prevent user confusion and wiki abuse, e.g u'\u202aFrontPage'. 32 # names. Prevent user confusion and wiki abuse, e.g u'\u202aFrontPage'.
24 page_invalid_chars_regex = re.compile( 33 page_invalid_chars_regex = re.compile(
25 ur""" 34 ur"""