diff options
Diffstat (limited to 'repoze/bfg/paster_templates/zodb')
| -rw-r--r-- | repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl b/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl index 4fc20798d..c9023f822 100644 --- a/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl +++ b/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl @@ -14,7 +14,7 @@ def app(global_config, **settings): finder = PersistentApplicationFinder(zodb_uri, appmaker) def get_root(request): return finder(request.environ) + config = Configurator(root_factory=get_root, settings=settings) zcml_file = settings.get('configure_zcml', 'configure.zcml') - config = Configurator(root_factory=get_root, - settings=settings, zcml_file=zcml_file) + config.load_zcml(zcml_file) return config.make_wsgi_app() |
