diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/config/__init__.py	Sat Jul 22 17:49:17 2006 +0200
@@ -0,0 +1,50 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - site-wide configuration defaults (NOT per single wiki!)
+
+    @copyright: 2005-2006 by Thomas Waldmann (MoinMoin:ThomasWaldmann)
+    @license: GNU GPL, see COPYING for details.
+"""
+import re
+
+# Threads flag - if you write a moin server that use threads, import
+# config in the server and set this flag to True.
+use_threads = False
+
+# Charset - we support only 'utf-8'. While older encodings might work,
+# we don't have the resources to test them, and there is no real
+# benefit for the user. IMPORTANT: use only lowercase 'utf-8'!
+charset = 'utf-8'
+
+# When creating files, we use e.g. 0666 & config.umask for the mode:
+umask = 0770
+
+# Invalid characters - invisible characters that should not be in page
+# names. Prevent user confusion and wiki abuse, e.g u'\u202aFrontPage'.
+page_invalid_chars_regex = re.compile(
+    ur"""
+    \u0000 | # NULL
+
+    # Bidi control characters
+    \u202A | # LRE
+    \u202B | # RLE
+    \u202C | # PDF
+    \u202D | # LRM
+    \u202E   # RLM
+    """,
+    re.UNICODE | re.VERBOSE
+    )
+
+# Other stuff
+url_schemas = []
+
+smileys = (r"X-( :D <:( :o :( :) B) :)) ;) /!\ <!> (!) :-? :\ >:> |) " +
+           r":-( :-) B-) :-)) ;-) |-) (./) {OK} {X} {i} {1} {2} {3} {*} {o}").split()
+
+# unicode: set the char types (upper, lower, digits, spaces)
+from MoinMoin.util.chartypes import _chartypes
+for key, val in _chartypes.items():
+    if not vars().has_key(key):
+        vars()[key] = val
+
+