changeset 11492 | b0b8942cdb80 |
11491:6ba31f0c7d5a | 11492:b0b8942cdb80 |
---|---|
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 |