comparison MoinMoin/config/__init__.py @ 1011:58f5af49cd03

move config and multiconfig to config/ package, see HINT in CHANGES
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 22 Jul 2006 17:49:17 +0200
parents MoinMoin/config.py@bf2435e61f97
children f37b49b6313d
comparison
equal deleted inserted replaced
1010:2e7a3dd04833 1011:58f5af49cd03
1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - site-wide configuration defaults (NOT per single wiki!)
4
5 @copyright: 2005-2006 by Thomas Waldmann (MoinMoin:ThomasWaldmann)
6 @license: GNU GPL, see COPYING for details.
7 """
8 import re
9
10 # Threads flag - if you write a moin server that use threads, import
11 # config in the server and set this flag to True.
12 use_threads = False
13
14 # Charset - we support only 'utf-8'. While older encodings might work,
15 # we don't have the resources to test them, and there is no real
16 # benefit for the user. IMPORTANT: use only lowercase 'utf-8'!
17 charset = 'utf-8'
18
19 # When creating files, we use e.g. 0666 & config.umask for the mode:
20 umask = 0770
21
22 # Invalid characters - invisible characters that should not be in page
23 # names. Prevent user confusion and wiki abuse, e.g u'\u202aFrontPage'.
24 page_invalid_chars_regex = re.compile(
25 ur"""
26 \u0000 | # NULL
27
28 # Bidi control characters
29 \u202A | # LRE
30 \u202B | # RLE
31 \u202C | # PDF
32 \u202D | # LRM
33 \u202E # RLM
34 """,
35 re.UNICODE | re.VERBOSE
36 )
37
38 # Other stuff
39 url_schemas = []
40
41 smileys = (r"X-( :D <:( :o :( :) B) :)) ;) /!\ <!> (!) :-? :\ >:> |) " +
42 r":-( :-) B-) :-)) ;-) |-) (./) {OK} {X} {i} {1} {2} {3} {*} {o}").split()
43
44 # unicode: set the char types (upper, lower, digits, spaces)
45 from MoinMoin.util.chartypes import _chartypes
46 for key, val in _chartypes.items():
47 if not vars().has_key(key):
48 vars()[key] = val
49
50