view MoinMoin/_tests/wikiconfig_groups.py @ 4824:e5ef9d9f9eaa

Groups2009: wikidicts was moved to the datastruct.dicts.backends.wiki_dicts module.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Fri, 26 Jun 2009 18:13:35 +0200
parents a1018d829c3e
children 8db07c73e972
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
MoinMoin.groups related configuration is defined here.

@copyright: 2009 by MoinMoin:DmitrijsMilajevs
@license: GNU GPL, see COPYING for details.
"""

from wikiconfig import LocalConfig
from MoinMoin.groups import WikiGroups
from MoinMoin.datastruct.dicts import WikiDicts

class Config(LocalConfig):
    group_manager_init = lambda self, request: WikiGroups(request)

    def dict_manager_init(self, request):
        dicts = WikiDicts(request)
        dicts.load_dicts()
        return dicts