1
# -*- coding: iso-8859-1 -*-
3
MoinMoin - site-wide configuration defaults (NOT per single wiki!)
5
@copyright: 2005-2006 MoinMoin:ThomasWaldmann
6
@license: GNU GPL, see COPYING for details.
9
from MoinMoin import version
11
# unicode: set the char types (upper, lower, digits, spaces)
12
from MoinMoin.util.chartypes import *
14
# List of image types browser do support regulary
15
browser_supported_images = ('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico', )
17
# Parser to use mimetype text
18
parser_text_mimetype = ('plain', 'csv', 'rst', 'docbook', 'latex', 'tex', 'html', 'css',
19
'xml', 'python', 'perl', 'php', 'ruby', 'javascript',
20
'cplusplus', 'java', 'pascal', 'diff', 'gettext', 'xslt', 'creole', )
22
# When creating files, we use e.g. 0666 & config.umask for the mode:
25
# Default value for the static stuff URL prefix (css, img, js).
27
# * do NOT use this directly, it is only the DEFAULT value to be used by
28
# server Config classes and by multiconfig.py for request.cfg.
29
# * must NOT end with '/'!
30
# * some servers expect '/' at beginning and only 1 level deep.
31
url_prefix_static = '/moin_static' + version.release_short
33
# Threads flag - if you write a moin server that use threads, import
34
# config in the server and set this flag to True.
37
# Charset - we support only 'utf-8'. While older encodings might work,
38
# we don't have the resources to test them, and there is no real
39
# benefit for the user. IMPORTANT: use only lowercase 'utf-8'!
42
# Regex to find lower->upper transitions (word boundaries in WikiNames), used by split_title
43
split_regex = re.compile('([%s])([%s])' % (chars_lower, chars_upper), re.UNICODE)
45
# Invalid characters - invisible characters that should not be in page
46
# names. Prevent user confusion and wiki abuse, e.g u'\u202aFrontPage'.
47
page_invalid_chars_regex = re.compile(
51
# Bidi control characters
58
re.UNICODE | re.VERBOSE
61
# used for wikiutil.clean_input
62
clean_input_translation_map = {
63
# these chars will be replaced by blanks
68
for c in u'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0b\x0c\x0e\x0f' \
69
'\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f':
70
# these chars will be removed
71
clean_input_translation_map[ord(c)] = None
75
url_schemas = ['http', 'https', 'ftp', 'file',
76
'mailto', 'nntp', 'news',
77
'ssh', 'telnet', 'irc', 'ircs', 'xmpp',
78
'webcal', 'ed2k', 'rootz',
82
smileys = (r"X-( :D <:( :o :( :) B) :)) ;) /!\ <!> (!) :-? :\ >:> |) " +
83
r":-( :-) B-) :-)) ;-) |-) (./) {OK} {X} {i} {1} {2} {3} {*} {o}").split()