comparison MoinMoin/config.py @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <tw-public@gmx.de>
date Thu, 22 Sep 2005 15:09:50 +0000
parents
children a0a8f3a499fd
comparison
equal deleted inserted replaced
-1:000000000000 0:77665d8e2254
1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - site-wide configuration defaults (NOT per single wiki!)
4
5 @copyright: 2005 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.
17 # IMPORTANT: use only lowercase 'utf-8'!
18 charset = 'utf-8'
19 ##charset = 'iso-8859-1'
20
21 # Invalid characters - invisible characters that should not be in page
22 # names. Prevent user confusion and wiki abuse, e.g u'\u202aFrontPage'.
23 page_invalid_chars_regex = re.compile(
24 ur"""
25 \u0000 | # NULL
26
27 # Bidi control characters
28 \u202A | # LRE
29 \u202B | # RLE
30 \u202C | # PDF
31 \u202D | # LRM
32 \u202E # RLM
33 """,
34 re.UNICODE | re.VERBOSE
35 )
36
37 # Other stuff
38 umask = 0770
39 url_schemas = []
40
41 smileys = {
42 "X-(": (15, 15, 0, "angry.png"),
43 ":D": (15, 15, 0, "biggrin.png"),
44 "<:(": (15, 15, 0, "frown.png"),
45 ":o": (15, 15, 0, "redface.png"),
46 ":(": (15, 15, 0, "sad.png"),
47 ":)": (15, 15, 0, "smile.png"),
48 "B)": (15, 15, 0, "smile2.png"),
49 ":))": (15, 15, 0, "smile3.png"),
50 ";)": (15, 15, 0, "smile4.png"),
51 "/!\\": (15, 15, 0, "alert.png"),
52 "<!>": (15, 15, 0, "attention.png"),
53 "(!)": (15, 15, 0, "idea.png"),
54
55 # copied 2001-11-16 from http://pikie.darktech.org/cgi/pikie.py?EmotIcon
56 ":-?": (15, 15, 0, "tongue.png"),
57 ":\\": (15, 15, 0, "ohwell.png"),
58 ">:>": (15, 15, 0, "devil.png"),
59 "|)": (15, 15, 0, "tired.png"),
60
61 # some folks use noses in their emoticons
62 ":-(": (15, 15, 0, "sad.png"),
63 ":-)": (15, 15, 0, "smile.png"),
64 "B-)": (15, 15, 0, "smile2.png"),
65 ":-))": (15, 15, 0, "smile3.png"),
66 ";-)": (15, 15, 0, "smile4.png"),
67 "|-)": (15, 15, 0, "tired.png"),
68
69 # version 1.0
70 "(./)": (20, 15, 0, "checkmark.png"),
71 "{OK}": (14, 12, 0, "thumbs-up.png"),
72 "{X}": (16, 16, 0, "icon-error.png"),
73 "{i}": (16, 16, 0, "icon-info.png"),
74 "{1}": (15, 13, 0, "prio1.png"),
75 "{2}": (15, 13, 0, "prio2.png"),
76 "{3}": (15, 13, 0, "prio3.png"),
77
78 # version 1.1 (flags)
79 # flags for the languages in MoinMoin.i18n
80 "{da}": (18, 12, 1, "flag-da.png"),
81 "{de}": (18, 12, 1, "flag-de.png"),
82 "{en}": (24, 12, 0, "flag-en.png"),
83 "{es}": (18, 12, 0, "flag-es.png"),
84 "{fi}": (18, 12, 1, "flag-fi.png"),
85 "{fr}": (18, 12, 1, "flag-fr.png"),
86 "{it}": (18, 12, 1, "flag-it.png"),
87 "{ja}": (18, 12, 1, "flag-ja.png"),
88 "{ko}": (18, 12, 1, "flag-ko.png"),
89 "{nl}": (18, 12, 1, "flag-nl.png"),
90 "{pt}": (18, 12, 0, "flag-pt.png"),
91 "{sv}": (18, 12, 0, "flag-sv.png"),
92 "{us}": (20, 12, 0, "flag-us.png"),
93 "{zh}": (18, 12, 0, "flag-zh.png"),
94
95 # version 1.3.4 (stars)
96 # try {*}{*}{o}
97 "{*}": (15, 15, 0, "star_on.png"),
98 "{o}": (15, 15, 0, "star_off.png"),
99 }
100
101 # unicode: set the char types (upper, lower, digits, spaces)
102 from MoinMoin.util.chartypes import _chartypes
103 for key, val in _chartypes.items():
104 if not vars().has_key(key):
105 vars()[key] = val
106
107