cubicweb/pyramid/init_instance.py
author David Douard <david.douard@logilab.fr>
Wed, 08 Feb 2017 16:05:00 +0100
changeset 11998 cd09178c80a8
parent 11631 faf279e33298
permissions -rw-r--r--
[server] fix a typo in a docstring

from cubicweb.cwconfig import CubicWebConfiguration


def includeme(config):
    appid = config.registry.settings['cubicweb.instance']
    cwconfig = CubicWebConfiguration.config_for(appid)

    config.registry['cubicweb.config'] = cwconfig
    config.registry['cubicweb.repository'] = repo = cwconfig.repository()
    config.registry['cubicweb.registry'] = repo.vreg