diff MoinMoin/_tests/wikiconfig.py @ 4781:cee722c2097c

Groups2009: wikiconfig_groups.py is used for the groups-related configuration instead of altering wikiconfig.py in _tests.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Wed, 03 Jun 2009 12:10:14 +0200
parents fb0cce9e8621
children f0c2ab8ef256
line wrap: on
line diff
--- a/MoinMoin/_tests/wikiconfig.py	Tue Jun 02 14:32:40 2009 +0200
+++ b/MoinMoin/_tests/wikiconfig.py	Wed Jun 03 12:10:14 2009 +0200
@@ -14,10 +14,9 @@
 import os
 
 from MoinMoin.config.multiconfig import DefaultConfig
-from MoinMoin.groups import GroupManager
 
 
-class Config(DefaultConfig):
+class LocalConfig(DefaultConfig):
     sitename = u'Developer Test Wiki'
     logo_string = sitename
 
@@ -25,11 +24,17 @@
     data_dir = os.path.join(_base_dir, "data")
     data_underlay_dir = os.path.join(_base_dir, "underlay")
 
-    group_manager_init = lambda self, request: GroupManager([])
-
     #show_hosts = 1
 
     #secrets = 'some not secret string just to make tests happy'
 
     # used to check if it is really a wiki we may modify
     is_test_wiki = True
+
+try:
+    from wikiconfig_groups import Config
+except ImportError, err:
+    if not str(err).endswith('wikiconfig_groups'):
+        raise
+    Config = LocalConfig
+