comparison 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
comparison
equal deleted inserted replaced
4780:c13bce051efb 4781:cee722c2097c
12 """ 12 """
13 13
14 import os 14 import os
15 15
16 from MoinMoin.config.multiconfig import DefaultConfig 16 from MoinMoin.config.multiconfig import DefaultConfig
17 from MoinMoin.groups import GroupManager
18 17
19 18
20 class Config(DefaultConfig): 19 class LocalConfig(DefaultConfig):
21 sitename = u'Developer Test Wiki' 20 sitename = u'Developer Test Wiki'
22 logo_string = sitename 21 logo_string = sitename
23 22
24 _base_dir = os.path.join(os.path.dirname(__file__), '../../tests/wiki') 23 _base_dir = os.path.join(os.path.dirname(__file__), '../../tests/wiki')
25 data_dir = os.path.join(_base_dir, "data") 24 data_dir = os.path.join(_base_dir, "data")
26 data_underlay_dir = os.path.join(_base_dir, "underlay") 25 data_underlay_dir = os.path.join(_base_dir, "underlay")
27 26
28 group_manager_init = lambda self, request: GroupManager([])
29
30 #show_hosts = 1 27 #show_hosts = 1
31 28
32 #secrets = 'some not secret string just to make tests happy' 29 #secrets = 'some not secret string just to make tests happy'
33 30
34 # used to check if it is really a wiki we may modify 31 # used to check if it is really a wiki we may modify
35 is_test_wiki = True 32 is_test_wiki = True
33
34 try:
35 from wikiconfig_groups import Config
36 except ImportError, err:
37 if not str(err).endswith('wikiconfig_groups'):
38 raise
39 Config = LocalConfig
40