diff 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
line wrap: on
line diff
--- a/MoinMoin/config/__init__.py	Wed Sep 20 15:08:47 2006 +0200
+++ b/MoinMoin/config/__init__.py	Mon Sep 25 11:01:54 2006 +0200
@@ -6,6 +6,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 import re
+from MoinMoin import version
 
 # Threads flag - if you write a moin server that use threads, import
 # config in the server and set this flag to True.
@@ -19,6 +20,14 @@
 # When creating files, we use e.g. 0666 & config.umask for the mode:
 umask = 0770
 
+# Default value for the static stuff URL prefix (css, img, js).
+# Caution:
+# * do NOT use this directly, it is only the DEFAULT value to be used by
+#   server Config classes and by multiconfig.py for request.cfg.
+# * must NOT end with '/'!
+# * some servers expect '/' at beginning and only 1 level deep.
+url_prefix_static = '/moin_static' + version.release_short
+
 # 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(