changeset 11631 | faf279e33298 |
parent 11492 | b0b8942cdb80 |
11478:1817f8946c22 | 11631:faf279e33298 |
---|---|
1 from cubicweb.cwconfig import CubicWebConfiguration |
|
2 |
|
3 |
|
4 def includeme(config): |
|
5 appid = config.registry.settings['cubicweb.instance'] |
|
6 cwconfig = CubicWebConfiguration.config_for(appid) |
|
7 |
|
8 config.registry['cubicweb.config'] = cwconfig |
|
9 config.registry['cubicweb.repository'] = repo = cwconfig.repository() |
|
10 config.registry['cubicweb.registry'] = repo.vreg |