diff MoinMoin/server/__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 65dc979761f0
children 1a1d6e0fe14f
line wrap: on
line diff
--- a/MoinMoin/server/__init__.py	Wed Sep 20 15:08:47 2006 +0200
+++ b/MoinMoin/server/__init__.py	Mon Sep 25 11:01:54 2006 +0200
@@ -9,7 +9,7 @@
 """
 
 import os
-
+from MoinMoin import config
 
 def switchUID(uid, gid):
     """ Switch identity to safe user and group
@@ -45,6 +45,8 @@
     This class does all error checking needed for config values, and will
     raise a RuntimeError on any fatal error.
     """
+    # some defaults that should be common for all servers:
+    url_prefix_static = config.url_prefix_static
 
     def __init__(self):
         """ Validate and post process configuration values