view MoinMoin/_tests/wikiconfig.py @ 4773:c3e904a9c00b

Groups 2009: BackendManager gets request object in __init__
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 30 May 2009 08:22:09 +0200
parents d85a2b2f120b
children fb0cce9e8621
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
MoinMoin - test wiki configuration

Do not change any values without good reason.

We mostly want to have default values here, except for stuff that doesn't
work without setting them (like data_dir and underlay_dir).

@copyright: 2000-2004 by Juergen Hermann <jh@web.de>
@license: GNU GPL, see COPYING for details.
"""

import os

from MoinMoin.config.multiconfig import DefaultConfig
from MoinMoin.groups import GroupManager


class Config(DefaultConfig):
    sitename = u'Developer Test Wiki'
    logo_string = sitename

    _base_dir = os.path.join(os.path.dirname(__file__), '../../tests/wiki')
    data_dir = os.path.join(_base_dir, "data")
    data_underlay_dir = os.path.join(_base_dir, "underlay")

    group_manager = 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