From bdd2b124c1165fc6fec8c4bd725f0f910b169ecc Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 27 Nov 2009 02:01:45 +0000 Subject: Get rid of ``zcml_file`` argument in configurator constructor in favor of the load_zcml API. Get rid of hook_zca argument in configurator constructor in favor of a ``hook_zca`` method. Provide an ``unhook_zca`` method. --- repoze/bfg/paster_templates/starter/+package+/run.py_tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repoze/bfg/paster_templates/starter') diff --git a/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl b/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl index b7cd4b2c3..12d2a0719 100644 --- a/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl +++ b/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl @@ -5,7 +5,7 @@ def app(global_config, **settings): """ This function returns a repoze.bfg.router.Router object. It is usually called by the PasteDeploy framework during ``paster serve``""" + 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() -- cgit v1.2.3